I execute binomial glm in R and have some cases where the number of failures is a negative number. (This is due to a measurement error in the data). I would expect the glm function to not work for these cases, since log (# successes / # failure) is undefined. To my surprise, glm works and provides estimates of regression coefficients. I do not understand why glm works and how to interpret the results.
For instance:
succ=c(3,0,1,4,2,4,4,7,15,4);
fail=c(1016,1506,1285,1152,868,610,432,211,129,-4);
x_age=c(42.5,47.5,52.5,57.5,62.5,67.5,72.5,77.5,82.5,87.5);
glm(cbind(succ,fail) ~ x_age, family=binomial);
Call: glm(formula = cbind(succ, fail) ~ x_age, family = binomial)
Coefficients:
(Intercept) x_age
-14.15 0.14
Degrees of Freedom: 8 Total (i.e. Null); 7 Residual
Null Deviance: 105
Residual Deviance: 17.7 AIC: 47.3
source
share