predict.cat_glm {catalytic} | R Documentation |
Predict Outcome for New Data Using a Fitted GLM Model
Description
This function generates predictions for new data points based on a fitted categorical Generalized Linear Model (GLM) object.
Depending on the type of model, it either uses stats::predict.glm
or calculates predictions based on the model coefficients.
Usage
## S3 method for class 'cat_glm'
predict(object, newdata = NULL, ...)
Arguments
object |
A fitted model object of class |
newdata |
An optional data frame containing new predictor values. If |
... |
Additional arguments passed to |
Value
A vector of predicted values for the specified new data.
[Package catalytic version 0.1.0 Index]