Learn R Programming

betareg (version 1.0-1)

residuals.betareg: Residuals function for beta regression models.

Description

This function returns the standardized residuals from beta regression models, deviance residuals or the usual residuals.

Usage

residuals.betareg(object, type=c("standardized", "usual", "deviance",...)

Arguments

object
Fitted model using betareg.
type
The desired type of residuals. This function returns by default the standardized residuals, also returns the deviance residuals and may return the usual residuals (which is the value minus estimated mean).
...
Optional arguments

References

FERRARI, S.L.P., CRIBARI-NETO, F. (2004). Beta regression for modeling rates and proportions. Journal of Applied Statistics, forthcoming.

See Also

betareg, br.fit, summary.betareg, predict.betareg

Examples

Run this code
data(pratergrouped)
attach(pratergrouped)
y <- V11/100
X <- cbind(V1,V2,V3,V4,V5,V6,V7,V8,V9,V10)
fit <- betareg(y ~ X)
residuals(fit)
residuals(fit,type="dev")

Run the code above in your browser using DataLab