Skip to content
Prev 15198 / 20628 Next

Correct specification of nested binomial mixed model with custom intercept to infer variance components and intraclass correlations

Hi,

As long as you code each colony, patriline, ID and trial uniquely (for 
example, you don't call the first bees from two different patrilines 
bee1) then you don't need to be explicit about the nesting: 
(1|colony)+(1|patriline)+(1|ID) = (1|colony/patriline/ID). It used to be 
useful for computational reasons to explicitly state that the design was 
nested, but now most software (lmer/asreml/MCMCglmm) use algorithms for 
detecting this structure to determine a good computational strategy.

You can also fit (1|colony)+(1|patriline)+(1|ID)+(1|trial)+(1|obs) where 
obs is a factor with a different level for each row. It accounts for 
overdispersion. How many of these random effect you choose to model is 
your decision.

Are there a fixed number of eggs and multiple bees are trying to eat 
them, or is each bee assayed alone? If the former, the response 
variables might not conform to a binomial but a multinomial.

The patriline variance is accounting for any imbalance in the data, so 
it is estimating the variance had there been no skew. I still don't 
understand why you want to include the proportional distribution of the 
different patrilines in the model, particularly as an offset? Why would 
it influence what a single bee with known patriline does - because it is 
more likely to eat an egg that belongs to a different patriline? If so, 
I understand, but I would just have it in as a standard covariate.

Cheers,

Jarrod
On 27/01/2017 14:42, Tom Wenseleers wrote: