Description Usage Arguments Details Value Author(s)
Makes a lighter version of a fitted object by removing elements containing data.
1 | getLightFit(fit)
|
fit |
A fitted object. |
Most of the space used by a fitted object is not necessary for
prediction. This concerns, for instance, the "residuals", "effects",
"fitted.values", and "model" entries of a linear model fitted by
lm
. These entries can thus be removed from the object without
affecting the model predictions. This function is currently only
implemented for fitted objects that derive from class 'lm' or 'rpart'. It
is mainly for internal use.
Returns the same object as the input without the entries that contain data.
Antoine Chambaz, Pierre Neuvial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.