The logit link makes the probability constant within each group: write , with . Let and . Independence gives . Up to terms independent of the parameters, the log likelihood is
The likelihood equations are
Together they also imply . Thus, when all totals satisfy ,
The group logits are unconstrained apart from their parametrization, and each binomial log likelihood is strictly concave in its logit, so these equations give the unique finite maximum. A total of or instead gives a boundary probability and an infinite logit; a finite MLE need not exist in that case.
For , keep fixed and let . Since , the central limit theorem gives . The derivative of the logit is , so the delta method gives the baseline logit estimator in a group-factor binomial model law
The second group does not improve the baseline estimate because it has its own free offset. Equivalently, the Fisher information matrix for is
Its first diagonal entry confirms the same asymptotic variance.
factor(day) treats the nine days as categorical rather than imposing a numerical time trend. rep(400,27) supplies the number of trials for every dish, and prop is the observed surviving proportion. The contrast setting uses treatment coding with day 1 as reference; the ordered-factor polynomial option is unused. Supplying these proportions to glm with the binomial family and weights gives precisely the grouped-binomial logistic regression likelihood for the counts. The weights represent trial counts, not additional independent dish observations. The binomial family's default link is the logit link and its dispersion is fixed at .
Let be survivors in dish on day . Both fitted models assume independent . Model 1 specifies
so it has one common probability and one fitted coefficient. Its estimated probability is the total surviving count divided by the total trial count, .
Model 2 specifies
It has nine coefficients and allows a separate probability for each day, while retaining a common probability for the three dishes within that day. The MLEs are the day totals divided by . In day order they are
The intercept is the first day's logit, and each other coefficient is its day's logit minus that reference. These are additive effects on log odds, not additive changes in survival probability.
The analysis of deviance adds the eight day indicators after an intercept-only model. Its residual deviance compares a fitted model with the saturated statistical model assigning one separate probability to each of the dishes. For fitted dish probabilities , the binomial deviance is
The binomial scale is one, so this is also scaled deviance. The reported decrease measures the extra fit provided by day. There are observational units for these residual statistical degrees of freedom, not separately fitted Bernoulli responses.
The null model uses one parameter, the day model uses nine, and there are grouped observations. The four missing entries, in their table order, are therefore
The test of no day effect is . The nominal binomial likelihood-ratio test statistic is , compared asymptotically with . Its nominal -value is about , so the common-probability model is decisively inadequate relative to the day model. The fitted probabilities in (i) show substantial differences between days, with days 1 and 7 much higher than days 3 and 8.
However, relative improvement does not establish absolute fit. The day model's deviance goodness-of-fit test compares with , giving . The counts are large enough for this approximation to be reasonable. Thus at the day-specific binomial model still shows lack of fit. Among the two printed models it is preferred, but it should not be regarded as a fully satisfactory final model.
The residual scale estimate suggests overdispersion. Directly computing the Pearson statistic from the day means gives
This corroborates extra dish variation rather than the nominal binomial variance. Dish heterogeneity or dependence among cells in a dish can produce such variation. Residual checks and a quasibinomial regression or an explicit model for dish heterogeneity are sensible refinements. Allowing dispersion of this moderate magnitude would enlarge standard errors but would not plausibly remove the very large day effect. Retain day effects, while accounting for the remaining extra-binomial variation.

Articles by others on the same topic (0)

There are currently no matching articles.