Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2010 Feb 20;29(4):504-20.
doi: 10.1002/sim.3775.

Real longitudinal data analysis for real people: building a good enough mixed model

Affiliations

Real longitudinal data analysis for real people: building a good enough mixed model

Jing Cheng et al. Stat Med. .

Abstract

Mixed effects models have become very popular, especially for the analysis of longitudinal data. One challenge is how to build a good enough mixed effects model. In this paper, we suggest a systematic strategy for addressing this challenge and introduce easily implemented practical advice to build mixed effects models. A general discussion of the scientific strategies motivates the recommended five-step procedure for model fitting. The need to model both the mean structure (the fixed effects) and the covariance structure (the random effects and residual error) creates the fundamental flexibility and complexity. Some very practical recommendations help to conquer the complexity. Centering, scaling, and full-rank coding of all the predictor variables radically improve the chances of convergence, computing speed, and numerical accuracy. Applying computational and assumption diagnostics from univariate linear models to mixed model data greatly helps to detect and solve the related computational problems. Applying computational and assumption diagnostics from the univariate linear models to the mixed model data can radically improve the chances of convergence, computing speed, and numerical accuracy. The approach helps to fit more general covariance models, a crucial step in selecting a credible covariance model needed for defensible inference. A detailed demonstration of the recommended strategy is based on data from a published study of a randomized trial of a multicomponent intervention to prevent young adolescents' alcohol use. The discussion highlights a need for additional covariance and inference tools for mixed models. The discussion also highlights the need for improving how scientists and statisticians teach and review the process of finding a good enough mixed model.

PubMed Disclaimer

Figures

Figure 1
Figure 1
The average number of alcohol use in the last 30 days over time.
Figure 2
Figure 2
The OLS residual versus time.
Figure 3
Figure 3
The Jackknifed studentized residual histogram from the linear mixed effect model with the original outcome at 1.5 years.
Figure 4
Figure 4
The Jackknifed studentized residual histogram from the linear mixed effect model with the Box-Cox (power = 16) transformed outcome at 1.5 years.
Figure 5
Figure 5
Predicted value versus Jackknifed studentized residual from the linear mixed effect model with the Box-Cox (power = 16) transformed outcome at 1.5 years.

Similar articles

Cited by

References

    1. Laird NM, Ware JH. Random-effects models for longitudinal data. Biometrics. 1982;38:963–974. - PubMed
    1. Gurka MJ, Edwards LJ. Mixed Models Handbook of Statistics, Volume 27: Epidemiology and Medical Statistics. Elsevier; North Holland: 2008.
    1. Box GEP, Draper NR. Empirical Model-Building and Response Surfaces. Wiley; New York: 1987. p. 424.
    1. Chatfield C. Model uncertainty, data mining and statistical inference. Journal of the Royal Statistical Society, Ser A. 1995;158:419–466.
    1. Draper D. Assessment and propagation of model uncertainty. Journal of the Royal Statistical Society, Ser B. 1995;57:45–97.

Publication types

MeSH terms

LinkOut - more resources