Accessible analysis of longitudinal data with linear mixed effects models

Dis Model Mech. 2022 May 1;15(5):dmm048025. doi: 10.1242/dmm.048025. Epub 2022 May 6.

Abstract

Longitudinal studies are commonly used to examine possible causal factors associated with human health and disease. However, the statistical models, such as two-way ANOVA, often applied in these studies do not appropriately model the experimental design, resulting in biased and imprecise results. Here, we describe the linear mixed effects (LME) model and how to use it for longitudinal studies. We re-analyze a dataset published by Blanton et al. in 2016 that modeled growth trajectories in mice after microbiome implantation from nourished or malnourished children. We compare the fit and stability of different parameterizations of ANOVA and LME models; most models found that the nourished versus malnourished growth trajectories differed significantly. We show through simulation that the results from the two-way ANOVA and LME models are not always consistent. Incorrectly modeling correlated data can result in increased rates of false positives or false negatives, supporting the need to model correlated data correctly. We provide an interactive Shiny App to enable accessible and appropriate analysis of longitudinal data using LME models.

Keywords: ANOVA; Linear mixed effects; Longitudinal; Microbiome; Mouse; Shiny app.

MeSH terms

  • Animals
  • Computer Simulation
  • Linear Models
  • Longitudinal Studies
  • Mice
  • Models, Statistical*