Description Usage Arguments Value See Also Examples
View source: R/2_diagnostic_functions.R
Function to return 'pearson' or 'score' residuals for mixed Poisson regression models.
1 2 |
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. |
A vector containing the residuals of a mixpoissonreg object.
plot.mixpoissonreg
, predict.mixpoissonreg
,
autoplot.mixpoissonreg
, summary.mixpoissonreg
1 2 | daysabs_prog <- mixpoissonreg(daysabs ~ prog, data = Attendance)
residuals(daysabs_prog)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.