MixedLM
MixedLM, short for mixed linear model, is a statistical framework that extends ordinary linear regression to handle data with hierarchical or grouped structure. It incorporates both fixed effects, which are constant across groups, and random effects, which vary by group, to account for correlations among observations within the same group.
In the standard formulation, the observed outcome y is modeled as y = Xβ + Zb + ε, where X
Estimation is usually performed by maximum likelihood (ML) or restricted maximum likelihood (REML). REML is commonly
Assumptions include linearity, normality of random effects and residuals, and correct specification of the random-effects structure.
Common use cases involve longitudinal studies, educational or healthcare data with site or subject effects, and