Learn R Programming

betareg (version 1.2.1)

envelope.beta: Half-Normal Plot of Standardized and Deviance Residuals

Description

Two plots are provided together with an envelope: A Half-Normal plot of standardized residuals and a Half-Normal plot of deviance residuals.

Usage

envelope.beta(model=fit.model,sim=100,conf=.90, pch="+",font.main=1, 
cex.main=1.5, type = c("standardized","deviance"))

Arguments

model
Fitted model using betareg
sim
The number of simulations used to produce the confidence bounds
conf
The confidence level
pch
Determines if the points are presented as "+" or "-"
font.main
Determines the type of the font in the main title
cex.main
The size of the font in the main title
type
Determines if the type of the residual is "standardized" or "deviance"

References

FERRARI, S.L.P., CRIBARI-NETO, F. (2004). Beta regression for modeling rates and proportions. Journal of Applied Statistics, v. 31, n. 7, p. 799-815.

See Also

betareg, summary.betareg, predict.betareg, residuals.betareg

Examples

Run this code
data(pratergrouped)
fit <- betareg(oil ~ batch1 + batch2 + batch3 + batch4 + batch5 + 
batch6 + batch7 + batch8 + batch9 + temp, data=pratergrouped)
envelope.beta(fit)

Run the code above in your browser using DataLab