residuals.mixpoissonreg: Residuals Method for 'mixpoissonreg' Objects

Description Usage Arguments Value See Also Examples

View source: R/2_diagnostic_functions.R

Description

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

Usage

1
2
## S3 method for class '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

1
2
daysabs_prog <- mixpoissonreg(daysabs ~ prog, data = Attendance)
residuals(daysabs_prog)

mixpoissonreg documentation built on March 11, 2021, 1:07 a.m.