predict.chantrics: Predict Method for chantrics fits

Description Usage Arguments Details Value

View source: R/adj_loglik_methods.R

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

1
2
## S3 method for class '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.

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.


chantrics documentation built on Sept. 29, 2021, 9:08 a.m.