# Horseshoe prior for logistic regression in brms

**URL:** <https://discourse.mc-stan.org/t/horseshoe-prior-for-logistic-regression-in-brms/4832>\
**Category:** brms\
**Created:** [July 12, 2018, 1:41pm UTC](https://discourse.mc-stan.org/t/horseshoe-prior-for-logistic-regression-in-brms/4832 "2018-07-12T13:41:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jd\_c](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jd_c/32/16759_2.png) [@jd\_c](https://discourse.mc-stan.org/u/jd_c)\
**Post date:** [July 12, 2018, 1:41pm UTC](https://discourse.mc-stan.org/t/horseshoe-prior-for-logistic-regression-in-brms/4832/1 "2018-07-12T13:41:26Z")

</div>

- Operating System: windows 10
- brms Version: 2.3.1

I have been reading this paper [http://proceedings.mlr.press/v54/piironen17a/piironen17a.pdf](http://proceedings.mlr.press/v54/piironen17a/piironen17a.pdf), along with the supplement to try to understand the horseshoe prior for logistic regression in a case where I have around 30 predictors. I am having trouble understanding how to implement this prior in brms (even though the documentation for brms is excellent). I’m very new to using brms and Stan (and modeling in a Bayesian framework) in general.

Would someone be able to specify the prior in brms in the above paper for the the classification example? This might help me understand how to use brms to implement the same kind of model and prior. Here is the supplementary section with Stan code [http://proceedings.mlr.press/v54/piironen17a/piironen17a-supp.pdf](http://proceedings.mlr.press/v54/piironen17a/piironen17a-supp.pdf)

I was thinking the prior in brms would look something like this: horseshoe(1, scale\_global = 0.5). scale\_global would be obtained by plugging in sigma=2 and then the appropriate D, n, and p into equation 16 from the paper, correct?  
Sorry for the simple question. Thanks for the help!
