search for: thetestlineal

Displaying 1 result from an estimated 1 matches for "thetestlineal".

2010 Apr 27
3
Problem calculating multiple regressions on a data frame.
...e 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 and none of them seems to work as i expected. For example, i have tried: theSplit<-split(theTestLineal, list(as.factor(theTestLineal $ids), as.factor(theTestLineal $variable))) I can then use lm(value~seqMonth,data=zongSplit[[1]]) ... lm(value~seqMonth,data=zongSplit[[4]]) that works well, (it fails for some combinations of ID and variable where there is one datapoint) however when i try to use...