# Exposing/ using posterior\_epred

**URL:** <https://discourse.mc-stan.org/t/exposing-using-posterior-epred/15499>\
**Category:** brms\
**Created:** [May 31, 2020, 6:03pm UTC](https://discourse.mc-stan.org/t/exposing-using-posterior-epred/15499 "2020-05-31T18:03:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guido\_Biele](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/guido_biele/32/3414_2.png) [@Guido\_Biele](https://discourse.mc-stan.org/u/Guido_Biele)\
**Post date:** [May 31, 2020, 6:03pm UTC](https://discourse.mc-stan.org/t/exposing-using-posterior-epred/15499/1 "2020-05-31T18:03:16Z")

</div>

brms has an internal function posterior\_epred, which I’d like to use.  
Is there a way to access the function?

---

<div class="post-metadata">

**Author:** ![paul.buerkner](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul.buerkner/32/3303_2.png) [@paul.buerkner](https://discourse.mc-stan.org/u/paul.buerkner)\
**Post date:** [May 31, 2020, 6:09pm UTC](https://discourse.mc-stan.org/t/exposing-using-posterior-epred/15499/2 "2020-05-31T18:09:45Z")

</div>

Isn’t it exported?

---

<div class="post-metadata">

**Author:** ![Guido\_Biele](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/guido_biele/32/3414_2.png) [@Guido\_Biele](https://discourse.mc-stan.org/u/Guido_Biele)\
**Post date:** [May 31, 2020, 6:28pm UTC](https://discourse.mc-stan.org/t/exposing-using-posterior-epred/15499/3 "2020-05-31T18:28:23Z")

</div>

I’m not on my machine now, but I remember that it wasn’t available when I tried using it.  
I’ll check again later tonight and report back.  
(I found the function in the code for condtional\_effect function)

---

<div class="post-metadata">

**Author:** ![Guido\_Biele](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/guido_biele/32/3414_2.png) [@Guido\_Biele](https://discourse.mc-stan.org/u/Guido_Biele)\
**Post date:** [May 31, 2020, 6:34pm UTC](https://discourse.mc-stan.org/t/exposing-using-posterior-epred/15499/4 "2020-05-31T18:34:47Z")

</div>

I just checked the manual, which I should have done before. It looks as it should be available under the alias fitted.brmsfit.
