Learn R Programming

BinaryEPPM (version 2.3)

hatvalues.BinaryEPPM: Extraction of hat matrix values from BinaryEPPM Objects

Description

Extract the values of the hat matrix from models of class "BinaryEPMM".

Usage

# S3 method for BinaryEPPM
hatvalues(model, …)

Arguments

model

fitted model object of class "BinaryEPPM".

some methods for this generic function require additional arguments.

Value

The calculated hat values for the fitted model. These are used to calculate Cook's distances.

References

Cribari-Neto F, Zeileis A. (2010). Beta Regression in R. Journal of Statistical Software, 34(2), 1-24. 10.18637/jss.v034.i02.

See Also

betareg

Examples

Run this code
# NOT RUN {
data("ropespores.case") 
output.fn <- BinaryEPPM(data = ropespores.case,
                  number.spores / number.tested ~ 1 + offset(logdilution),
                  model.type = 'p only', model.name = 'binomial')   
hatvalues(output.fn)
# }

Run the code above in your browser using DataLab