Data-Driven Model Structure Diagrams for Hierarchical Linear Mixed Models
Hierarchical linear mixed models are commonly used in many scientific fields. However, without a strong statistical background, it can be hard to understand the relationships between the random effect variables and the inferences that can be made when a model has nested random effects. Visualizing relationships makes it easier for the practitioner to understand what relationships the model is capable of estimating and testing. We present an R package modeldiagramR that seamlessly creates a visualization of the model based on the data and the model object created when fitting a linear mixed model using either lme4 or nlme.
Authors
- Mark Greenwood (ORCID: https://orcid.org/0000-0001-6933-1201)
- Ronald K. June (ORCID: https://orcid.org/0000-0003-0752-4109)
- Greta M. Linse (ORCID: https://orcid.org/0000-0002-7823-7716)
Publication Details
- Journal
- Journal of Data Science
- Published
- 2026-01-01
- DOI
- https://doi.org/10.6339/26-jds1222
- Primary Topic
- Data Analysis with R
- Type
- article
- Field-Weighted Citation Impact
- 0.00