Formulas are of the form
IMPUTED_VARIABLES ~ MODEL_OBJECT
The left-hand-side of the formula object lists the variable or variables to
be imputed. The right-hand-side must be a model object for which an S3
predict
method is implemented. Alternatively, one can specify a custom
predicting function. This function must accept at least a model and a
dataset, and return one predicted value for each row in the dataset.
foretell
implements usefull predict
methods for cases
where by default the predicted output is not of the same type as the predicted
variable (e.g. when using certain link functions in glm
)