Re: [R] converting factors to dummy variables

2007-12-05 Thread Henrique Dallazuanna
Try this also: table(cbind.data.frame(Price=my.dataset$Price, Colour=paste(my.dataset$Colour, my.dataset$Store, sep=":"))) On 05/12/2007, Tim Calkins <[EMAIL PROTECTED]> wrote: > Hi all - > > I'm trying to find a way to create dummy variables from factors in a > regression. I have been using big

Re: [R] converting factors to dummy variables

2007-12-04 Thread Charles C. Berry
On Wed, 5 Dec 2007, Tim Calkins wrote: > Hi all - > > I'm trying to find a way to create dummy variables from factors in a > regression. I have been using biglm along the lines of > > ff <- log(Price) ~ factor(Colour):factor(Store) + > factor(DummyVar):factor(Colour):factor(Store) > > lm1 <- bigl

[R] converting factors to dummy variables

2007-12-04 Thread Tim Calkins
Hi all - I'm trying to find a way to create dummy variables from factors in a regression. I have been using biglm along the lines of ff <- log(Price) ~ factor(Colour):factor(Store) + factor(DummyVar):factor(Colour):factor(Store) lm1 <- biglm(ff, data=my.dataset) but because there are lots of c