Re: [R] how to run linear regression models at once

2011-01-10 Thread wangwallace
I am too negligent... thank you very much for pointing out that! -- View this message in context: http://r.789695.n4.nabble.com/how-to-run-linear-regression-models-at-once-tp3179256p3207823.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] how to run linear regression models at once

2011-01-10 Thread David Winsemius
On Jan 10, 2011, at 1:29 PM, wangwallace wrote: hey, Dennis, I applied your syntax into my data frame with different variable names. Specifically, I replaced y1 and y2, with ocbi and ocbo. I got the following error message. Could you please explain why would this happen? Again, thanks!

Re: [R] how to run linear regression models at once

2011-01-10 Thread wangwallace
hey, Dennis, I applied your syntax into my data frame with different variable names. Specifically, I replaced y1 and y2, with ocbi and ocbo. I got the following error message. Could you please explain why would this happen? Again, thanks! > for(i in 1:5){fm1<-as.formula(paste('ocbi',ms[i],sep='

Re: [R] how to run linear regression models at once

2011-01-08 Thread wangwallace
cool, it worked. thank you very much for your help!! :) -- View this message in context: http://r.789695.n4.nabble.com/how-to-run-linear-regression-models-at-once-tp3179256p3205186.html Sent from the R help mailing list archive at Nabble.com. __ R-hel

Re: [R] how to run linear regression models at once

2011-01-07 Thread Dennis Murphy
Hi: On Fri, Jan 7, 2011 at 7:04 AM, wangwallace wrote: > > hey, folks, > > I have two very simple questions. I am not quite sure if I can do this > using > R. > > so, I am analyzing a large data frame with thousands of variables. For > example: > > Dependent variables: d1, d2, d3 (i.e., there ar

[R] how to run linear regression models at once

2011-01-07 Thread wangwallace
hey, folks, I have two very simple questions. I am not quite sure if I can do this using R. so, I am analyzing a large data frame with thousands of variables. For example: Dependent variables: d1, d2, d3 (i.e., there are three dependent variables) Independent variables: s1, s2, s3, ..s100