bayes_R2 function

Computes R-squared using Bayesian R-squared approach.