CountsEPPM-package {CountsEPPM} | R Documentation |
Fitting of EPPM models to count and binary data.
Description
Fits regression models to under- and over-dispersed count data using extended Poisson process models.
Details
Package: | CountsEPPM |
Type: | Package |
Version: | 2.1 |
Date: | 2016-03-04 |
License: | GPL-2 |
Using Generalized Linear Model (GLM) terminology, the functions utilize linear predictors for mean and variance with log link functions to fit the regression models. Smith and Faddy (2016) gives further details about the package as well as examples of its use.
Author(s)
David M. Smith <dmccsmith@verizon.net>
References
Faddy M, Smith D. (2011). Analysis of count data with covariate dependence in both mean and variance. Journal of Applied Statistics, 38, 2683-2694. doi:10.1002/bimj.201100214.
Smith D, Faddy M. (2016). Mean and Variance Modeling of Under- and Overdispersed Count Data. Journal of Statistical Software, 69(6), 1-23. doi:10.18637/jss.v069.i06.
Zeileis A, Croissant Y. (2010). Extended Model Formulas in R: Multiple Parts and Multiple Responses. Journal of Statistical Software, 34(1), 1-13. doi:10.18637/jss.v034.i01.
Examples
data(herons.group)
initial <- c(1.9871533,1.9900881,3.6841305,0.4925816)
names(initial) <- c("Adult mean","Immature mean", "Variance","log(b)")
output.fn <- CountsEPPM(number.attempts~0+group | 1, herons.group,initial=initial)
print(output.fn)