Re: [R] Problem calculating multiple regressions on a data frame.

2010-04-27 Thread Luis Sisamon
Gabor Grothendieck gmail.com> writes: > > Replace lm(...) with try(lm(...)) > Thanks for all the replies. I managed to make it work with the try() trick, I actually padded the lm() on two levels of try() and is working now Sharpsteen approach. __ R

Re: [R] Problem calculating multiple regressions on a data frame.

2010-04-27 Thread Gabor Grothendieck
Replace lm(...) with try(lm(...)) On Tue, Apr 27, 2010 at 7:48 AM, Luis Sisamón wrote: > Hi there, > I am stuck trying to solve what should be a fairly easy problem. > I have a data frame that essentially consists of (ID, time as seqMonth, > variable, value) and i want to find the regression coe

[R] Problem calculating multiple regressions on a data frame.

2010-04-27 Thread Luis Sisamón
Hi there, I am stuck trying to solve what should be a fairly easy problem. I have a data frame that essentially consists of (ID, time as seqMonth, variable, value) and i want to find the regression coefficient of value vs time for each combination of ID and Variable. I have tried several approaches