on 07/11/2008 10:50 AM Woolner, Keith wrote:
Hi everyone,
Is there a way to take an lm() model and strip it to a minimal form (or
convert it to another type of object) that can still used to predict the
dependent variable?
<snip>
Depending upon how much memory you need to conserve and what else you
may need to do with the model object:
1. lm(YourFormula, data = YourData, model = FALSE)
'model = FALSE' will result in the model frame not being retained.
2. lm(YourFormula, data = YourData, model = FALSE, x = FALSE)
'x = FALSE' will result in the model matrix not being retained.
See ?lm for more information.
HTH,
Marc Schwartz
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.