paul-buerkner / brms

brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan
https://paul-buerkner.github.io/brms/
GNU General Public License v2.0
1.25k stars 177 forks source link

R2D2 does not account for scale of the data #1655

Open n-kall opened 1 month ago

n-kall commented 1 month ago

Currently, it seems that the R2D2 prior does not take into account the scale of the covariates. In other words, it seems to assume that the predictors (and outcome?) are standardized. However, I haven't found anywhere in the documentation that this is stated.

I think it could be helpful if this is added to the the documentation on R2D2, and perhaps it should be an option to scale the lambdas as in the R2D2M2 paper (equation 7).

paul-buerkner commented 1 month ago

Good point. Same goes for horseshoe actually, I think(?) An autoscaling option for the lambdas would indeed be nice. I assume the same thing could be easily done for horseshoe too. @avehtari what do you think?

avehtari commented 1 month ago

Scaling (that can be turned off) would be useful

paul-buerkner commented 1 month ago

I think we already have the autoscale option that currently scales (only) by sigma. I think making autoscale also scale according to the predictors' scales would be great.