Skip to content
Prev 28687 / 63424 Next

zero variance in part of a glm (PR#11355)

m.crawley at imperial.ac.uk wrote:
Why are you reporting trouble with your own understanding as a bug in R?

I don't see anything out of the ordinary here. In the first case you 
have divergence, not because of a zero variance, but because you are 
trying to estimate an infinite value for the linear predictor  (l = 
logit(1) for the combination where everyone dies). This will also happen 
if you fit an ordinary logistic regression, whenever you have 0s in the 
y*antibio*toxin marginal table.