[R] stats lm() function

ph84 masterodspam at gmx.de
Thu Mar 12 18:53:38 CET 2009


Hi,

Im using the lm() function where the formula is quite big (300 arguments)
and the data is a frame of 3000 values.

This is running in a loop where in each step the formula is reduced by one
argument, and the lm command is called again (to check which arguments are
useful) .

This takes 1-2 minutes.
Is there a way to speed this up?
i checked the code of the lm function and its seems that its preparing the
data and then calls lm.Fit(). i thought about just doing this praparing
stuff first and only call lm.fit() 300 times.


-- 
View this message in context: http://www.nabble.com/stats-lm%28%29-function-tp22482054p22482054.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list