estequa.zeroinflation | R Documentation |
Computes the estimating equations evaluated at the parameter estimates and the observed data for regression models to deal with zero-excess in count data.
## S3 method for class 'zeroinflation'
estequa(object, submodel = c("counts", "zeros"), ...)
object |
an object of the class zeroinflation. |
submodel |
an (optional) character string which allows to specify the model: "counts" or "zeros". By default,
|
... |
further arguments passed to or from other methods. |
A vector with the values of the estimating equations evaluated at the parameter estimates and the observed data.
####### Example 1: Roots Produced by the Columnar Apple Cultivar Trajan
data(Trajan)
fit1 <- zeroalt(roots ~ photoperiod, family="nbf(log)", zero.link="logit", data=Trajan)
estequa(fit1)
fit1a <- zeroinf(roots ~ photoperiod, family="nbf(log)", zero.link="logit", data=Trajan)
estequa(fit1a)
####### Example 2: Self diagnozed ear infections in swimmers
data(swimmers)
fit2 <- zeroalt(infections ~ frequency | location, family="nb1(log)", data=swimmers)
estequa(fit2)
fit2a <- zeroinf(infections ~ frequency | location, family="nb1(log)", data=swimmers)
estequa(fit2a)
####### Example 3: Article production by graduate students in biochemistry PhD programs
bioChemists <- pscl::bioChemists
fit3 <- zeroalt(art ~ fem + kid5 + ment, family="nb1(log)", data = bioChemists)
estequa(fit3)
fit3a <- zeroinf(art ~ fem + kid5 + ment | ment, family="nb1(log)", data = bioChemists)
estequa(fit3a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.