mfPole | R Documentation |
mfboost_family
R6 Class for mfboost pole model object for use in mfboost_family
R6 Class for mfboost pole model object for use in mfboost_family
A pole (similar to an offset) for a mfboost
model is typically result
of some kind of model fit, which might be another simpler mfboost model
or some other kind of model procedure estimating the pole from the data.
For later model predictions on new data, it is important to store the
not only the resulting pole, but the whole model behind it, to have access
to new pole predictions. The abstract R6 class mfPole
implements
the basic structure needed to provide a pole for mfboost.
model
A fitted model object.
fit()
An initialization function determining the pole from the data. The function takes two arguments.
mfPole$fit(obj.formula, data)
obj.formula
Model formula for the pole model.
data
Data in FDboost
format.
predict()
A function taking newdata
in the same format as data
and generating a prediction as a simple vector fitting to the data.
mfPole$predict(newdata = NULL)
newdata
in FDboost
format. The default NULL
specifies the original data.
clone()
The objects of this class are cloneable with this method.
mfPole$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.