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 chantrics
predict(object, newdata = NULL, type = c("response", "link"), ...)

Arguments

object

Object of class chantrics, as returned by adj_loglik()

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 "response" is on the scale of the response variables. The alternative "link" is on the scale of the linear predictors, if applicable. Otherwise, an error is returned.

...

unused.

Value

A vector of predictions.

Details

If newdata is omitted, the predictions are based on the data used for the fit. Any instances of NA will return NA.