Re: [R] how to do linear regression when dimension is high

2010-11-17 Thread Quan Zhou
Thanks! it worked. this forum is so powerful! On Tue, Nov 16, 2010 at 12:20 PM, Douglas Bates wrote: > On Tue, Nov 16, 2010 at 10:30 AM, poko2000 > wrote: > > > Hi I am a newbie in R. > > I have data with dim of 20. > > How to use lm if i want to do regression with the whole design matrix? My >

Re: [R] how to do linear regression when dimension is high

2010-11-16 Thread Douglas Bates
On Tue, Nov 16, 2010 at 10:30 AM, poko2000 wrote: > Hi I am a newbie in R. > I have data with dim of 20. > How to use lm if i want to do regression with the whole design matrix? My y > is the first column. > the left are xs. > Thanks a lot. Do you have the data stored in a matrix or in a data fr