Let be the number healthy among patients and . The fitted grouped-binomial logistic regression isFor its mass has exponential dispersion family formwhereThus and
The positive intercept means the fitted baseline probability for untreated women exceeds . The positive coefficient makes each fitted male log odds exceed the corresponding female log odds, while makes treatment lower the fitted log odds for either sex. Numerically the fitted probabilities are approximatelyTheir order is , which differs from the observed order . The additive model therefore cannot reproduce the observed ordering.
Add a sex-by-treatment interaction term:In R the formula becomes
prop ~ sex * treatment. There are four parameters for four cell probabilities, so this model is saturated and, provided the cell proportions lie strictly between zero and one, fits each observed proportion exactly. It therefore recovers all the stated order relations.For observed proportions and fitted proportions , the binomial deviance isA second-order Taylor expansion around givesthe generalized Pearson chi-squared statistic. Under the fitted binomial model this is approximately . The observed deviance is , whose upper-tail probability is about . Since this exceeds , there is no significant evidence of overdispersion.
Articles by others on the same topic
There are currently no matching articles.