I am using zeroinfl test with my data, and was wondering if it is enough to mention the z value in a paper.
Otherwise, I used the lrtest to calculate the X² and p values as follows:
model1<-zeroinfl(y~X1+X2,dist="negbin") model2>-zeroinfl(y~X1,dist="negbin")
lrtest(model1,model2) Likelihood ratio test
Model 1: y~ x1+ x2
Model 2: y~ x1
#Df LogLik Df Chisq Pr(>Chisq)
1 9 -301.04
2 7 -315.60 -2 29.124 4.741e-07 ***
So, I dont understand where the DF comes from!!
Thank you for your advice.