The LMIXED Procedure

Notation for the Mixed Model

This section introduces the mathematical notation that is used throughout this chapter to describe the linear mixed model. It assumes familiarity with basic matrix algebra (for an overview, see Searle 1982). A more detailed description of the mixed model is contained in the section Linear Mixed Models Theory.

A statistical model is a mathematical description of how data are generated. The standard linear model, as used by the GLM procedure, is one of the most common statistical models:

In this expression, bold y represents a vector of observed data, bold-italic beta is an unknown vector of fixed-effects parameters with a known design matrix bold upper X, and bold-italic epsilon is an unknown random error vector that models the statistical noise around bold upper X bold-italic beta. The focus of the standard linear model is to model the mean of bold y by using the fixed-effects parameters bold-italic beta. The residual errors bold-italic epsilon are assumed to be independent and identically distributed Gaussian random variables with mean 0 and variance sigma squared.

The mixed model generalizes the standard linear model as follows:

Here, bold-italic gamma is an unknown vector of random-effects parameters with a known design matrix bold upper Z, and bold-italic epsilon is an unknown random-error vector whose elements are no longer required to be independent and homogeneous.

The number of fixed-effects parameters is called the number of levels for fixed effects throughout this chapter. The number of random-effects parameters is called the number of levels for random effects throughout this chapter.

To further develop this notion of variance modeling, assume that bold-italic gamma and bold-italic epsilon are Gaussian random variables that are uncorrelated, have expectations bold 0, and have variances bold upper G and bold upper R, respectively. The variance of bold y is thus

Note that when bold upper Z equals bold 0, the mixed model reduces to the standard linear model.

You can model the variance of the data bold y by specifying the structures of bold upper Z, bold upper G, and bold upper R. The model matrix bold upper Z is set up in the same fashion as bold upper X, the model matrix for the fixed-effects parameters. For bold upper G and bold upper R, you must select some covariance structures. Possible covariance structures include the following:

  • variance components

  • compound symmetry (common covariance plus diagonal)

  • unstructured (general covariance)

  • autoregressive

By appropriately defining the model matrices bold upper X and bold upper Z in addition to the covariance structure matrices bold upper G and bold upper R, you can perform numerous mixed model analyses.

Last updated: April 08, 2021