Learn R Programming

mixpoissonreg (version 1.0.0)

residuals.mixpoissonreg: Residuals Method for mixpoissonreg Objects

Description

Function to return 'pearson' or 'score' residuals for mixed Poisson regression models.

Usage

# S3 method for mixpoissonreg
residuals(object, type = c("pearson", "score"), ...)

Arguments

object

an object of class "mixpoissonreg" containing results from the fitted model.

type

the type of residual to be returned. Currently, the options are 'pearson' or 'score'. The default is set to 'pearson'. Notice that these residuals coincide for Negative-Binomial models.

...

Currently not used.

Value

A vector containing the residuals of a mixpoissonreg object.

See Also

plot.mixpoissonreg, predict.mixpoissonreg, autoplot.mixpoissonreg, summary.mixpoissonreg

Examples

Run this code
# NOT RUN {
daysabs_prog <- mixpoissonreg(daysabs ~ prog, data = Attendance)
residuals(daysabs_prog)

# }

Run the code above in your browser using DataLab