Re: [R] design matrix construction question

2009-11-03 Thread Greg Snow
t; From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Ben Bolker > Sent: Monday, November 02, 2009 8:41 PM > To: r-help@r-project.org > Subject: [R] design matrix construction question > > > with the following simple data frame > dd = st

Re: [R] design matrix construction question

2009-11-02 Thread Ken Knoblauch
> On Nov 2, 2009, at 10:40 PM, Ben Bolker wrote: > > with the following simple data frame > > dd = structure(list(z = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L > > ), .Label = c("a", "b"), class = "factor"), x = c(0.3, 0.2, 0.1, > > 0, 0, 0, 0.2, 0.3)), .Names = c("z", "x"), row.names = c(NA, > >

Re: [R] design matrix construction question

2009-11-02 Thread David Winsemius
On Nov 2, 2009, at 10:40 PM, Ben Bolker wrote: with the following simple data frame dd = structure(list(z = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L ), .Label = c("a", "b"), class = "factor"), x = c(0.3, 0.2, 0.1, 0, 0, 0, 0.2, 0.3)), .Names = c("z", "x"), row.names = c(NA, -8L), class = "d

[R] design matrix construction question

2009-11-02 Thread Ben Bolker
with the following simple data frame dd = structure(list(z = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L ), .Label = c("a", "b"), class = "factor"), x = c(0.3, 0.2, 0.1, 0, 0, 0, 0.2, 0.3)), .Names = c("z", "x"), row.names = c(NA, -8L), class = "data.frame") I would like know if it's possible