predict.glmsmurf {smurf} | R Documentation |
Predictions Using Estimated Model
Description
Function to obtain predictions using the estimated model.
Usage
## S3 method for class 'glmsmurf'
predict(
object,
newdata = NULL,
newoffset = NULL,
type = c("link", "response", "terms"),
...
)
Arguments
object |
An object of class ' |
newdata |
Optionally, a data frame containing the predictors used in the prediction.
This can only be used when |
newoffset |
Optionally, a vector containing a new offset to be used in the prediction.
When |
type |
Type of prediction. The default is on the scale of the linear predictors ( |
... |
Additional arguments which are currently ignored. |
Value
A vector containing the predicted values using the estimated model in object
.
See Also
predict_reest
, predict.glm
, predict
,
glmsmurf
, glmsmurf-class
Examples
## See example(glmsmurf) for examples