l-boun...@r-project.org] On
> Behalf Of Paul Buerkner
> Sent: March 30, 2017 6:54 AM
> To: r-package-devel@r-project.org
> Subject: [R-pkg-devel] Problem in stats::model.matrix when omitting two-
> way interactions
>
> Hi all,
>
> recently I stumbled upen a problem in s
Hi all,
recently I stumbled upen a problem in stats::model.matrix that I think is
worth reporting.
When I run:
> dat <- data.frame(
> y = rnorm(8),
> x1 = factor(rep(0:1, each = 4)),
> x2 = factor(rep(rep(0:1, each = 2), 2)),
> x3 = factor(rep(0:1, 4))
> )
>
> stats::model.matrix(y ~ x1+