Learn R Programming

mcmcsae (version 0.8.1)

bayesR2: Compute a Bayesian measure of percentage of explained variance

Description

Compute a Bayesian measure of percentage of explained variance

Usage

bayesR2(x, summary = TRUE)

Value

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

Arguments

x

object of class mcdraws as created by MCMCsim.

summary

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

References

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