| PredictorLM | R Documentation |
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.
fmeffects::Predictor -> PredictorLM
new()Create a new PredictorCaret object.
PredictorLM$new(model, data)
modeltrain, train.formula object.
dataThe data used for computing FMEs, must be data.frame or data.table.
predict()Predicts on an observation "newdata".
PredictorLM$predict(newdata)
newdataThe feature vector for which the target should be predicted.
clone()The objects of this class are cloneable with this method.
PredictorLM$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.