predict.betareg {betareg}R Documentation

Prediction Method for betareg Objects

Description

Extract various types of predictions from beta regression models: either on the scale of responses in (0, 1) or the scale of the linear predictor.

Usage

## S3 method for class 'betareg':
predict(object, newdata = NULL,
  type = c("response", "link"), na.action = na.pass, ...)

Arguments

object fitted model object of class "betareg".
newdata optionally, a data frame in which to look for variables with which to predict. If omitted, the original observations are used.
type character indicating type of residuals.
na.action function determining what should be done with missing values in newdata. The default is to predict NA.
... currently not used.

Examples

data("GasolineYield", package = "betareg")

gy <- betareg(yield ~ gravity + pressure + temp10 + temp, data = GasolineYield)

cbind(
  predict(gy, type = "response"),
  predict(gy, type = "link")
)

[Package betareg version 2.0-0 Index]