getLightFit: Makes Lighter Fitted Object

Description Usage Arguments Details Value Author(s)

Description

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

Usage

1

Arguments

fit

A fitted object.

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.

Value

Returns the same object as the input without the entries that contain data.

Author(s)

Antoine Chambaz, Pierre Neuvial


tmle.npvi documentation built on May 1, 2019, 6:50 p.m.