Compute a Bayesian measure of percentage of explained variance
bayesR2(x, summary = TRUE)Posterior summary or full simulation draws of a Bayesian version of R-squared modelfit measure.
object of class mcdraws as created by MCMCsim.
if TRUE only a posterior summary is returned, otherwise
a simulation (dc) object.
A. Gelman, B. Goodrich, J. Gabry and A. Vehtari (2019). R-squared for Bayesian Regression Models. The American Statistician 73(3), 307-309.