predict.BranchGLMVS {BranchGLM} | R Documentation |
Gets predictions from a BranchGLMVS
object.
## S3 method for class 'BranchGLMVS'
predict(object, newdata = NULL, type = "response", which = 1, ...)
object |
a |
newdata |
a dataframe, if not specified then the data the model was fit on is used. |
type |
one of "linpreds" or "response", if not specified then "response" is used. |
which |
which model to get predictions from, the default is the best model. |
... |
further arguments passed to fit.BranchGLMVS. |
linpreds corresponds to the linear predictors and response is on the scale of the response variable. Offset variables are ignored for predictions on new data.
A numeric vector of predictions.