Skip to content

A Geometric Perspective for Marginal R2: Estimation and Inference in Generalized Linear Mixed Models

Hao Qin, Ayumi Mizuno, Kyle Morrison, Allison K. White, Shinichi Nakagawa

stat.MEarXiv:2611.14830

Abstract

Generalized linear mixed models (GLMMs) are widely used across scientific disciplines, yet quantifying response variation explained by auxiliary information remains challenging for non-Gaussian outcomes and hierarchical dependence. Existing R2 measures provide useful summaries, but their variance-based constructions are not generally linked to a common geometric interpretation, a fixed-design marginal estimand, and corresponding statistical inference. We propose marginal quasi-R2 through two distinct operations. First, marginalization integrates over latent random effects, retaining their uncertainty in the marginal response moments and specifying the model for explanatory assessment. Second, a Quasi-GLM formulation supplies a local working information metric under which orthogonal projection yields an Pythagorean decomposition of explained and unexplained variation. We define a fixed-design population estimand, establish consistency and asymptotic normality of its estimator, and derive cluster-robust sandwich standard errors and confidence intervals under stated regularity conditions. Simulations assess estimation accuracy and interval coverage across response families and random-effects structures. Two ecological applications illustrate the importance of reporting estimation uncertainty alongside marginal quasi-R2. The method is implemented in the R package quasiR2.

Create a lesson