predict.chantrics {chantrics} | R Documentation |
Obtains predictions from chantrics objects. The function can currently only
supply predictions of the link
and the response
values of the data used
for the fit.
## S3 method for class 'chantrics'
predict(object, newdata = NULL, type = c("response", "link"), ...)
object |
Object of class |
newdata |
optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used. Supplying new data is currently not supported. |
type |
the type of prediction required. The default |
... |
unused. |
If newdata
is omitted, the predictions are based on the data used
for the fit. Any instances of NA
will return NA
.
A vector of predictions.