[R] Doubt Linear Regression

2009-03-05 Thread Sueli Rodrigues
Hello. I have a file with 480 lines but each 6 lines corresponding just one sample. How can can work out the linear regression to each 6 lines? I use the model: model=lm(y~x) Sueli Rodrigues Agronomy Eng. - UNESP Master Degree - USP/ESALQ PPG-Soils and Plants Nutrition Phones(19)93442981

Re: [R] Doubt Linear Regression

2009-03-05 Thread Chuck Cleland
On 3/5/2009 7:53 AM, Sueli Rodrigues wrote: Hello. I have a file with 480 lines but each 6 lines corresponding just one sample. How can can work out the linear regression to each 6 lines? I use the model: model=lm(y~x) mydf - data.frame(X = rnorm(480), Y = rnorm(480)) mydf$SAMPLE - rep(1:80,