bayesR2: Compute a Bayesian measure of percentage of explained...

View source: R/model_eval.R

bayesR2R Documentation

Compute a Bayesian measure of percentage of explained variance

Description

Compute a Bayesian measure of percentage of explained variance

Usage

bayesR2(x, summary = TRUE)

Arguments

x

object of class mcdraws as created by MCMCsim.

summary

if TRUE only a posterior summary is returned, otherwise a simulation (dc) object.

Value

Posterior summary or full simulation draws of a Bayesian version of R-squared modelfit measure.

References

A. Gelman, B. Goodrich, J. Gabry and A. Vehtari (2019). R-squared for Bayesian Regression Models. The American Statistician 73(3), 307-309.


mcmcsae documentation built on July 21, 2026, 1:06 a.m.