Immune measures
The full models for all immune measures (circulation hemocytes, presence of circulating microaggregations, and zones of antibacterial activity) included diet type, infection cue, and the interaction between the two (main effects) as well as the average amount of diet eaten and pronotum width (covariates). Circulating hemocytes were analyzed with a negative binomial generalized linear model, the presence of circulating microaggregations of hemocytes was analyzed using a generalized linear model with a binomial distribution, and the zones of antibacterial activity were analyzed with a generalized linear model with a Gamma error distribution.