Index independent experimental vials by , write for the observed total eaten and for the number of other-species eggs eaten. The grouped-binomial logistic regression uses
Here and identify day and adult species, and the free effects are . There is no day-species interaction. The weights in the binomial generalized linear model are the denominators , so fitting the proportions gives this binomial likelihood, not 23 Bernoulli observations. The dispersion is fixed at one. This is a model for the composition of eggs eaten conditional on the total, rather than a model for the total appetite.
There are 23 independent vial responses. The intercept-only fit has 22 residual statistical degrees of freedom and deviance 33.631. Adding two day indicators removes two statistical degrees of freedom and reduces the residual deviance by . Adding the two species indicators then reduces it by . Thus the six replacements, in their printed order, are .
The residual deviance statistical degrees of freedom are , , and . These sequential analysis-of-deviance rows compare nested generalized linear models in the displayed order. In an unbalanced design, the first day row does not test day after controlling for species.
Compare the species-only model against the additive day-and-species model. The null hypothesis is , with the alternative that at least one is nonzero. The likelihood-ratio statistic is the reduction in residual deviance,
Under the null hypothesis, regular binomial likelihood asymptotics give , because the larger model has two additional parameters. For this chi-squared distribution the upper-tail probability is . There is no evidence of a day effect after controlling for species, and the species-only model is a reasonable simpler choice. The sequential day-only statistic 0.273 from the preceding table answers a different question and must not replace this comparison.
In the species-only model, the log odds for adult species A is the intercept, so with standard error 0.07824. This also follows directly by pooling its vials: there are 570 other-species eggs among 799 eggs eaten, giving and
For a regular maximum-likelihood estimator, asymptotic normality of a maximum likelihood estimator gives , with information . Substitution of gives . An approximate 95% Wald confidence interval is
This interval treats the selected species-only model as fixed; it does not account separately for uncertainty from choosing that model.
The relevant no-preference benchmark is , because two of the three equally supplied egg types count as other-species eggs. Its log odds is , which is below the entire confidence interval. Under the fitted binomial model, species A preferentially consumes other-species eggs. The estimate is , and transforming the log-odds confidence interval by gives approximately .
Comparing the interval with zero would test equal numbers of own- and other-species eggs eaten, which is not the no-preference hypothesis for this supply. The conclusion remains model-dependent: eggs are taken from a finite supply without replacement, and depletion or dependence within a vial can affect the binomial approximation. This fitted analysis supports an association with egg type; it does not by itself establish the mechanism of recognition or avoidance.

Articles by others on the same topic (0)

There are currently no matching articles.