search for: msg74759

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

2010 Apr 27
3
Problem calculating multiple regressions on a data frame.
...t, singular.ok = singular.ok, ...) : 0 (non-NA) cases I have tried to change the na.action with no success (na.pass, na.fail, na.exclude... all give the same error message) I have also tried to follow the approach suggested by Charles Sharpsteen (http://www.mail-archive.com/r-help@r-project.org/msg74759.html) with similar results. The code is as follows: theModels <- by( theTestLineal, list( theTestLineal$ids, zongTestLineal$variable), function( dataSlice ){ linMod <- lm( value ~ seqMonth, data = dataSlice ) # Slope and intercept may be recovered from the output of the coef() function: inte...