residuals.mixpoissonreg {mixpoissonreg} | R Documentation |
Residuals Method for mixpoissonreg
Objects
Description
Function to return 'pearson' or 'score' residuals for mixed Poisson regression models.
Usage
## 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
daysabs_prog <- mixpoissonreg(daysabs ~ prog, data = Attendance)
residuals(daysabs_prog)
[Package mixpoissonreg version 1.0.0 Index]