predict.chantrics {chantrics} | R Documentation |
Predict Method for chantrics fits
Description
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.
Usage
## S3 method for class 'chantrics'
predict(object, newdata = NULL, type = c("response", "link"), ...)
Arguments
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. |
Details
If newdata
is omitted, the predictions are based on the data used
for the fit. Any instances of NA
will return NA
.
Value
A vector of predictions.
[Package chantrics version 1.0.0 Index]