predict.penreg: predict method for penreg class models

Description Usage Arguments Value

View source: R/penreg.R

Description

predict method for penreg class models

Usage

1
2
## S3 method for class 'penreg'
predict(fit, newdata = NULL, type = c("link", "response"), which = NULL)

Arguments

fit

the model fit.

newdata

a data frame. if NULL the fitted values are returned.

type

whether the linear predictor ("link", the default) or the mean function ("response") should be returned.

which

if the model was evaluated over a grid, which column of coefficients to return.

Value

a matrix or vector


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.