R2-D2 Priors in brms
Function used to set up R2D2 priors for population-level effects in brms. The function does not evaluate its arguments – it exists purely to help set up the model.
R2D2(mean_R2 = 0.5, prec_R2 = 2, cons_D2 = 1, autoscale = TRUE)
mean_R2 |
mean of the Beta prior on the coefficient of determination R^2. |
prec_R2 |
precision of the Beta prior on the coefficient of determination R^2. |
cons_D2 |
concentration vector of the Dirichlet prior on the variance decomposition parameters. |
autoscale |
Logical; indicating whether the horseshoe
prior should be scaled using the residual standard deviation
|
Zhang, Y. D., Naughton, B. P., Bondell, H. D., & Reich, B. J. (2020). Bayesian regression using a prior on the model fit: The R2-D2 shrinkage prior. Journal of the American Statistical Association. https://arxiv.org/pdf/1609.00046.pdf
set_prior(R2D2(mean_R2 = 0.8, prec_R2 = 10))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.