PeerJBioinformaticsPeer-reviewed journal article
partR2: Partitioning R2 in generalized linear mixed models
Martin A. StoffeliD, Shinichi NakagawaiD, Holger SchielzethiD
- Citations
- 397
- FWCI
- 41.84
- Field percentile
- top 1%
Abstract
The coefficient of determination R2 quantifies the amount of variance explained by regression coefficients in a linear model. It can be seen as the fixed-effects complement to the repeatability R (intra-class correlation) for the variance explained by random effects and thus as a tool for variance decomposition. The R2 of a model can be further partitioned into the variance explained by a particular predictor or a combination of predictors using semi-partial (part) R2 and structure coefficients, but this is rarely done due to a lack of software implementing these statistics. Here, we introduce partR2, an R package that quantifies part R2 for fixed effect predictors based on (generalized) linear mixed-effect model fits. The package iteratively removes predictors of interest from the model and monitors the change in the variance of the linear predictor. The difference to the full model gives a measure of the amount of variance explained uniquely by a particular predictor or a set of predictors. partR2 also estimates structure coefficients as the correlation between a predictor and fitted values, which provide an estimate of the total contribution of a fixed effect to the overall prediction, independent of other predictors. Structure coefficients can be converted to the total variance explained by a predictor, here called inclusive R2, as the square of the structure coefficients times total R2. Furthermore, the package reports beta weights (standardized regression coefficients). Finally,partR2 implements parametric bootstrapping to quantify confidence intervals for each estimate. We illustrate the use of partR2 with real example datasets for Gaussian and binomial GLMMs and discuss interactions, which pose a specific challenge for partitioning the explained variance among predictors.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- The coefficient of determination R2 and intra-class correlation coefficient from generalized linear mixed-effects models revisited and expanded
S. Nakagawa, P. C. D. Johnson, H. Schielzeth·bioRxiv·Jul 10, 2017
- R2s for Correlated Data: Phylogenetic Models, LMMs, and GLMMs
A. Ives·bioRxiv·Jul 26, 2017
- Empirical decomposition of the explained variation in the variance components form of the mixed model
Nicholas Schreck·bioRxiv·Dec 28, 2019
- CORE GREML: Estimating covariance between random effects in linear mixed models for genomic analyses of complex traits
Xuan Zhou, Hae Kyung Im, Sang Lee·Nature CommunicationsPeer-reviewed·Aug 21, 2020
- rdacca.hp: an R package for generalizing hierarchical and variation partitioning in multiple regression and canonical analysis
J. Lai, Y. Zou, … P. Peres-Neto·bioRxiv·Mar 9, 2021
- Software update: Moving the R package sommer to multivariate mixed models for genome-assisted prediction
Giovanny E. Covarrubias-Pazaran·bioRxiv·Jun 25, 2018