Teaching Longitudinal Linear Mixed Models End-to-End: A Reproducible Case Study in Mouse Body-Weight Growth
Sunday A. Adetunji

TL;DR
This paper provides a comprehensive, reproducible case study demonstrating how to analyze longitudinal data using linear mixed-effects models, from data preparation to interpretation, with practical R code and a step-by-step workflow.
Contribution
It offers the first complete, executable workflow for teaching and applying longitudinal linear mixed models in a reproducible manner, linking scientific questions to model building and interpretation.
Findings
The parsimonious model performs as well as the fully interacted model.
It outperforms the common-slope model in fit.
Significant differences in weight gain among groups were identified.
Abstract
Background: Linear mixed-effects models are central for analyzing longitudinal continuous data, yet many learners meet them as scattered formulas or software output rather than as a coherent workflow. There is a need for a single, reproducible case study that links questions, model building, diagnostics, and interpretation. Methods: We reanalyze a published mouse body-weight experiment with 31 mice in three groups weighed weekly for 12 weeks. After reshaping the data to long format and using profile plots to motivate linear time trends, we fit three random-intercept linear mixed models: a common-slope model, a fully interacted group-by-time model, and a parsimonious model with group-specific intercepts, a shared slope for two groups, and an extra slope for the third. Models are compared using maximum likelihood, AIC, BIC, and likelihood ratio tests, and linear contrasts are used to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGenetic Mapping and Diversity in Plants and Animals · Data Analysis with R · Animal testing and alternatives
