Re: [R] creating subsets within lm()

2009-07-30 Thread Alain Zuur
Thomas A. Groen wrote: > > Dear All, > > the lm() function has the possibility to create a subset of the > possible explaining variables that you have. However, in the help > there is no example how to use this subset option. I tried the > following: > > model<-lm(dependent.data$MPFD~.,data=ex

[R] creating subsets within lm()

2009-07-30 Thread Thomas Groen
Dear All, the lm() function has the possibility to create a subset of the possible explaining variables that you have. However, in the help there is no example how to use this subset option. I tried the following: model<-lm(dependent.data$MPFD~.,data=explaining.data,subset=c(1,0,0,0,0,0,0,0,1,1,0