Learn R Programming

msme (version 0.5.3)

P__disp: A function to calculate Pearson Chi2 and its dispersion statistic following glm and glm.nb.

Description

This function calculates Pearson Chi2 statistic and the Pearson-based dipersion statistic. Values of the dispersion greater than 1 indicate model overdispersion. Values under 1 indicate under-dispersion.

Usage

P__disp(x)

Value

pearson.chi2

Pearson Chi2 value.

dispersion

Pearson-basde dispersion.

Arguments

x

the fitted model.

Author

Joseph Hilbe and Andrew Robinson

Details

To be used following glm and glm.nb functions.

References

Hilbe, J.M., and Robinson, A.P. 2013. Methods of Statistical Model Estimation. Chapman & Hall / CRC.

See Also

glm, glm.nb

Examples

Run this code
data(medpar)
mymod <- glm(los ~ hmo + white + factor(type), 
             family = poisson, 
             data = medpar)
P__disp(mymod)

Run the code above in your browser using DataLab