predict.bergreg: Predict Method for BerG Fits

Description Usage Arguments Value

Description

Obtains predictions from a fitted BerG regression object.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'bergreg'
predict(
  object,
  newdata = NULL,
  type = c("response", "link", "dispersion", "variance", "quantile"),
  at = 0.5,
  na.action = stats::na.pass,
  ...
)

Arguments

object

an 'bergreg' object.

newdata

optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used.

type

the type of prediction required. The default is on the scale of the response variable ("response"), that is, the fitted values (fitted means). The alternative "link" is on the scale of the linear predictors, that is, predictions are of log-means. The specification "dispersion" provides the fitted dispersion indixes, while "variance" provides the fitted variances. Finally, the option "quantile" gives the fitted quantiles in the order specified via 'at'.

at

the order of the quantile to be predicted if type = "quantile". The default is to predict the median, that is, at = 0.5.

na.action

function determining what should be done with missing values in newdata. The default is to predict NA.

...

arguments passed to or from other methods.

Value

A vector of predictions.


rdmatheus/bergreg documentation built on Dec. 22, 2021, 1:04 p.m.