Score test for overdispersion in Poisson regression {Rfast2} | R Documentation |
Score test for overdispersion in Poisson regression
Description
Score test for overdispersion in Poisson regression.
Usage
overdispreg.test(y, x)
Arguments
y |
A vector with count data. |
x |
A numerical matrix with predictor variables. |
Details
A score test for overdispersion in Poisson regression is implemented.
Value
A vector with two values. The test statistic and its associated p-value.
Author(s)
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
References
Yang Z., Hardin J.W. and Addy C.L. (2009). A score test for overdierpsdion in Poisson regression based on the generalised Poisson-2 model. Journal of Statistical Planning and Inference, 139(4): 1514–1521.
See Also
ztp.reg, censpois.mle wald.poisrat
Examples
y <- rnbinom(100, 10, 0.4)
x <- rnorm(100)
overdispreg.test(y, x)
[Package Rfast2 version 0.1.5.2 Index]