Learn R Programming

tmle.npvi (version 0.10.0)

getLightFit: Makes Lighter Fitted Object

Description

Makes a lighter version of a fitted object by removing elements containing data.

Usage

getLightFit(fit)

Arguments

fit
A fitted object.

Value

Details

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.