cocoResid | R Documentation |
Calculates the (Pearson) residuals of a fitted model for model evaluation purposes.
cocoResid(coco, val.num = 1e-11)
coco |
An object of class "coco |
val.num |
A non-negative real number which is used to stop the calculation of |
The Pearson residuals are computed as the scaled deviation of the observed count from its conditional expectation given the relevant past history, including covariates, if applicable. If a fitted model is correctly specified, the Pearson residuals should exhibit mean zero, variance one, and no significant serial correlation.
a list that includes the (Pearson) residuals, conditional expectations, conditional variances, and information on the model specifications.
Manuel Huth
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.