Re: [R] Linear Regression, Data is a list

2007-12-03 Thread Gabor Grothendieck
See: http://www.nabble.com/matrix-(column-wise)-multiple-regression-t4862261.html On Dec 3, 2007 8:58 AM, livia <[EMAIL PROTECTED]> wrote: > > Hello, > > I would like to perform a linear regression and the data is a list.e.g > lm(list$abc~., data=list) or lm(abc~., data=list), which would give th

Re: [R] Linear Regression, Data is a list

2007-12-03 Thread Henrique Dallazuanna
If i understand your question, you can try this: lapply(paste("lis$", names(lis), " ~ . ", sep=""), lm, data=lis) On 03/12/2007, livia <[EMAIL PROTECTED]> wrote: > > Hello, > > I would like to perform a linear regression and the data is a list.e.g > lm(list$abc~., data=list) or lm(abc~., data=li