Learn R Programming

betareg (version 1.2.1)

hatvalues.betareg: Hat values

Description

Compute the diagonal elements of the "Hat" matrix of a beta regression model.

Usage

hatvalues.betareg(model, ...)

Arguments

model
a fitted model using betareg.
...
further arguments passed to or from other methods.

Value

  • This function returns a vector containing the diagonal elements of the "hat" matrix.

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

br.fit, 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)
hatvalues(fit)

Run the code above in your browser using DataLab