predict_reest {smurf} | R Documentation |
Predictions Using Re-estimated Model
Description
Function to obtain predictions using the re-estimated model.
Usage
predict_reest(object, ...)
## S3 method for class 'glmsmurf'
predict_reest(
object,
newdata = NULL,
newoffset = NULL,
type = c("link", "response", "terms"),
...
)
Arguments
object |
An object for which predictions are meaningful.
E.g. an object of class ' |
... |
Additional arguments which are currently ignored. |
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 ( |
Value
A vector containing the predicted values using the re-estimated model in object
,
when this is available, or, otherwise, the predicted values using the estimated model in object
with a warning.
See Also
predict.glmsmurf
, predict.glm
, predict
,
glmsmurf
, glmsmurf-class
Examples
## See example(glmsmurf) for examples