PredictorLM {fmeffects} | R Documentation |
PredictorLM
Description
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
Public 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.
[Package fmeffects version 0.1.3 Index]