Predict Model Output
predict_model.Rd
Generic function to predict outcomes from a fitted model object using new data.
Arguments
- object
A fitted model object for which a prediction method is defined.
- fit
The fitted model object, often returned by `train_model`. (Note: For some models, `object` itself might be the fit).
- newdata
New data (e.g., a matrix or data frame) for which to make predictions. The structure should be compatible with what the model was trained on.
- ...
Additional arguments passed to specific prediction methods.