I have obtained some strange results for the following data when conducting Poisson regression in R.
> RHT1b
f x1 y1 y2
1 f1 0 35 1
2 f2 2 70 4
3 f3 0 5 1
4 f4 9 37 4
5 f5 0 3 0
> summary(amod2b)
Call:
glm(formula = x1 ~ y2, family = poisson, data = RHT1b)
Deviance Residuals:
1 2 3 4 5
-0.00008 -1.71860 -0.00008 1.36550 0.00000
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -26.61 9977.85 -0.003 0.998
y2 7.08 2494.46 0.003 0.998
(Dispersion parameter for poisson family taken to be 1)
Null deviance: 24.9766 on 4 degrees of freedom
Residual deviance: 4.8182 on 3 degrees of freedom
AIC: 15.485
Number of Fisher Scoring iterations: 18
I had an issue with the data earlier where x1 row 4 read "8", and row 5 read "1". When I ran the regression the results seemed reliable and were nearly significant. After correcting the data to how it is shown above and updating the model, I have results which literally do not make sense to me.
My question is, why has this happened? Is is possible the value of 1 changing to 0 exceeded some sort of threshold of zero counts that the Poisson model can't handle? Would a negative binomial model be more appropriate?