Skip to contents

This task specializes Predictor for lm and lm-type models. The model is assumed to be a lm.

It is recommended to use makePredictor() for construction of Predictor objects.

Super class

fmeffects::Predictor -> PredictorLM

Methods


Method new()

Create a new PredictorCaret object.

Usage

PredictorLM$new(model, data)

Arguments

model

train, train.formula object.

data

The data used for computing FMEs, must be data.frame or data.table.


Method predict()

Predicts on an observation "newdata".

Usage

PredictorLM$predict(newdata)

Arguments

newdata

The feature vector for which the target should be predicted.


Method clone()

The objects of this class are cloneable with this method.

Usage

PredictorLM$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.