# Mixed model

A mixed model is a statistical model containing both fixed effects and random effects, that is mixed effects. These models are useful in a wide variety of disciplines in the physical, biological and social sciences. They are particularly useful in settings where repeated measurements are made on the same statistical units (longitudinal study) , or where measurements are made on clusters of related statistical units. Because of their advantage to deal with missing values, mixed effects models are often preferred over more traditional approaches such as repeated measures ANOVA.

## History and current status

Ronald Fisher introduced random effects models to study the correlations of trait values between relatives.[1] In the 1950s, Charles Roy Henderson provided best linear unbiased estimates (BLUE) of fixed effects and best linear unbiased predictions (BLUP) of random effects.[2][3][4][5] Subsequently, mixed modeling has become a major area of statistical research, including work on computation of maximum likelihood estimates, non-linear mixed effect models, missing data in mixed effects models, and Bayesian estimation of mixed effects models. Mixed models are applied in many disciplines where multiple correlated measurements are made on each unit of interest. They are prominently used in research involving human and animal subjects in fields ranging from genetics to marketing, and have also been used in industrial statistics.[citation needed]

↑Jump back a section

## Definition

In matrix notation a mixed model can be represented as

$\ y = X \beta + Zu + \epsilon\,\!$

where

• $y$ is a vector of observations, with mean $E(y)=X\beta$
• $\beta$ is a vector of fixed effects
• $u$ is a vector of random effects with mean $E(u)=0$ and variance-covariance matrix $\operatorname{var}(u)=G$
• $\epsilon$ is a vector of IID random error terms with mean $E(\epsilon)=0$ and variance $\operatorname{var}(\epsilon)=R$
• $X$ and $Z$ are matrices of regressors relating the observations $y$ to $\beta$ and $u$
↑Jump back a section

## Estimation

Henderson's "mixed model equations" (MME) are:[2][4]

$\begin{pmatrix} X'R^{-1}X & X'R^{-1}Z \\ Z'R^{-1}X & Z'R^{-1}Z + G^{-1} \end{pmatrix}\begin{pmatrix} \tilde{\beta} \\ \tilde{u} \end{pmatrix}=\begin{pmatrix} X'R^{-1}y \\ Z'R^{-1}y \end{pmatrix}$

The solutions to the MME, $\textstyle\tilde{\beta}$ and $\textstyle\tilde{u}$ are best linear unbiased estimates (BLUE) and predictors for $\beta$ and $u$, respectively. This is a consequence of the Gauss-Markov theorem when the conditional variance of the outcome is not scalable to the identity matrix. When the conditional variance is known, then the inverse variance weighted least squares estimate is BLUE. However, the conditional variance is rarely, if ever, known. So it is desirable to jointly estimate the variance and weighted parameter estimates when solving MMEs.

One method used to fit such mixed models is that of the EM algorithm[6] where the variance components are treated as unobserved nuisance parameters in the joint likelihood. Currently, this is the implemented method for the major statistical software packages R (lme in the nlme library) and SAS (proc mixed). The solution to the mixed model equations is a maximum likelihood estimate when the distribution of the errors is normal. [7][8]

↑Jump back a section

## References

1. ^ Fisher, RA (1918). "The correlation between relatives on the supposition of Mendelian inheritance". Transactions of the Royal Society of Edinburgh 52: 399–433.
2. ^ a b Robinson, G.K. (1991). "That BLUP is a Good Thing: The Estimation of Random Effects". Statistical Science 6 (1): 15–32. doi:10.1214/ss/1177011926. JSTOR 2245695.
3. ^ C. R. Henderson, Oscar Kempthorne, S. R. Searle and C. M. von Krosigk (1959). "The Estimation of Environmental and Genetic Trends from Records Subject to Culling". Biometrics (International Biometric Society) 15 (2): 192–218. doi:10.2307/2527669. JSTOR 2527669.
4. ^ a b
5. ^ McLean, Robert A.; Sanders, William L.; Stroup, Walter W. (1991). "A Unified Approach to Mixed Linear Models". The American Statistician (American Statistical Association) 45 (1): 54–64. doi:10.2307/2685241. JSTOR 2685241. More than one of |number= and |issue= specified (help)
6. ^ Lindstrom, ML; Bates, DM (1988). "Newton-Raphson and EM algorithms for linear mixed-effects models for repeated-measures data". JASA 83 (404): 1014–1021.
7. ^ Laird, Nan M.; Ware, James H. (1982). "Random-Effects Models for Longitudinal Data". Biometrics (International Biometric Society) 38 (4): 963–974. doi:10.2307/2529876. JSTOR 2529876. PMID 7168798. More than one of |number= and |issue= specified (help)
8. ^ Garrett M. Fitzmaurice, Nan M. Laird, and James H. Ware, 2004. Applied Longitudinal Analysis. John Wiley & Sons, Inc., p. 326-328.
↑Jump back a section