Skip to content
Prev 19360 / 20628 Next

Estimation of variance components in random- and mixed-effects models

Sorry for butting into this conversation but there is something I cannot get my head around. I often encounter situation where B grouping variable is nested into A grouping variable. B has around 10-20 levels and A only has around 3-5. Conceptually, everything is a random effect. If my understanding is correct in this case I should use the following lmer model due to the limited number of levels of B:
R ~ A+(1|B)
Even though, scientifically R ~ (1|A/B) would make more sense.
Variance of B of the first term is not equal to variance of A:B in the second.

I am most interested in a reasonable estimation on the variance of B while we know that it is nested in A.

In general, we use the classical ANOVA to do that: aov(R~A/B). This gives the same variance estimate for A:B interaction as lmer(R ~ (1|A/B)) if it the design is relatively well balanced. In a way I am not surprised because the Cross Validated post suggested by Ben Bolker also mentions that in this case mixed effect model behaves similarly to classical ones. But does it mean that this  ANOVA variance estimate is also biased/unreliable? Would the variance estimation of B from the first lmer model really be a better estimation?

Best Regards,
Kalman Toth

Sent with ProtonMail Secure Email.

??????? Original Message ???????
On Tuesday, June 29th, 2021 at 2:12 AM, Ben Bolker <bbolker at gmail.com> wrote:

            
Message-ID: <boE5pTz1kRk1UEaDwrCx4OwQFHa_SshZzBoqKjWRLraYlQ6BIoIdQHf5Bnm-C1Z7Ivy-sGeIj1rP4RD59ONVIvXSVkGRz-T9xoiVgqpSXmE=@protonmail.com>
In-Reply-To: <ca93574d-ed1f-8934-85f8-ed1e233c590f@gmail.com>