Re: [R] linear regression in a ragged array

2011-03-22 Thread Greg Snow
In general when you want to split up your data and do the same thing on each piece then combine the results back together it is good to look at the plyr package. But for this specific case you should look at the lmList function in the nlme package which may do exactly what you want with the lea

Re: [R] linear regression in a ragged array

2011-03-21 Thread David Winsemius
On Mar 21, 2011, at 5:25 AM, Marcel Curlin wrote: Hello, I have a large dataset of the form subj var1 var2 001100200 001120226 001130238 001140245 001150300 002110205 002125209 003101233 003115254 I would like to perf