I am working to produce a model in R for seed germination count data with lots of zeros (around 50% of the 264 total observations). The purpose is to determine the effect treatments have on plant species as a whole and individually. Originally, I had fit a generalised linear mixed effects model (binomial error structure) and though I got decent results for an entire dataset model, when I looked at individual species the model was unable to capture a seemingly obvious effect of a treatment when all the alternative cases were 0. For example the below is the summary output of the model when only filtered to one seed with around 24 observations. The sample data behind the output is below as well.
n<- c(19,20,20,20,20,20,19,19,20,20,20,20,19,20,20,20,20,20,20,20,19,19,19,20)
count<-c(8,11,13,13,15,11,0,0,0,0,0,0,9,9,13,11,14,8,0,0,0,0,0,0)
GA<-c(1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0)
Sm<-c(1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0)
light<-c(1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0)
mod_data<-data.frame(n, count, GA, Sm, light)
Call:
glm(formula = cbind(count, n - count) ~ GA + Sm + light,
family = binomial, data = mod_data)
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -23.7210 5592.9950 -0.004 0.997
GA 24.0074 5592.9950 0.004 0.997
Sm -0.2706 0.2627 -1.030 0.303
light 0.2410 0.2627 0.917 0.359
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 251.9059 on 23 degrees of freedom
Residual deviance: 9.9247 on 20 degrees of freedom
AIC: 58.669
Number of Fisher Scoring iterations: 20