hurdletest | R Documentation |
Wald test of the null hypothesis that no zero hurdle is required in hurdle regression models for count data.
hurdletest(object, ...)
object |
A fitted model object of class |
... |
arguments passed to |
If the same count distribution and the same set of regressors is used in the hurdle model for both, the count component and the zero hurdle component, then a test of pairwise equality between all coefficients from the two components assesses the null hypothesis that no hurdle is needed in the model.
The function hurdletest
is a simple convenience interface to
the function linearHypothesis
from the car
packages that can be employed to carry out a Wald test for this
hypothesis.
An object of class "anova"
as returned by linearHypothesis
.
Cameron AC, Trivedi PK (1998). Regression Analysis of Count Data. New York: Cambridge University Press.
Cameron AC, Trivedi PK (2005). Microeconometrics: Methods and Applications. Cambridge: Cambridge University Press.
hurdle
, linearHypothesis
data("CrabSatellites", package = "countreg")
cs <- CrabSatellites[, c("satellites", "width", "color")]
cs$color <- as.numeric(cs$color)
fm <- hurdle(satellites ~ ., data = cs, dist = "negbin", zero = "negbin")
if(require("car")) hurdletest(fm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.