A note on Bayesian R-squared for generalized additive mixed models
Abstract
We present a novel Bayesian framework to decompose the posterior predictive variance in a fitted Generalized Additive Mixed Model (GAMM) into explained and unexplained components. This decomposition enables a rigorous definition of Bayesian R2. We show that the new definition aligns with the intuitive Bayesian R2 proposed by Gelman, Goodrich, Gabry, and Vehtari (2019) [The American Statistician, 73(3), 307-309], but extends its applicability to a broader class of models. Furthermore, we introduce a partial Bayesian R2 to quantify the contribution of individual model terms to the explained variation in the posterior predictions
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.