# Tweedie family in brms

**URL:** https://discourse.mc-stan.org/t/tweedie-family-in-brms/9026
**Category:** brms
**Created:** [May 29, 2019, 7:35pm UTC](https://discourse.mc-stan.org/t/tweedie-family-in-brms/9026 "2019-05-29T19:35:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![csm](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/csm/32/14640_2.png) [@csm](https://discourse.mc-stan.org/u/csm)
#### Post date: [May 29, 2019, 7:35pm UTC](https://discourse.mc-stan.org/t/tweedie-family-in-brms/9026/1 "2019-05-29T19:35:07Z")

</div>

Hi!  
Is there any way to use a Tweedie family in brms?  
Regards,  
csm

---

<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 30, 2019, 7:08am UTC](https://discourse.mc-stan.org/t/tweedie-family-in-brms/9026/2 "2019-05-30T07:08:11Z")

</div>

Not natively, but if you can write up the Stan code for distribution, you can use the custom family feature of brms: [https://cran.r-project.org/web/packages/brms/vignettes/brms\_customfamilies.html](https://cran.r-project.org/web/packages/brms/vignettes/brms_customfamilies.html)

---

<div class="post-metadata">

### Author: ![desperate\_fellow](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@desperate\_fellow](https://discourse.mc-stan.org/u/desperate_fellow)
#### Post date: [May 13, 2024, 4:01pm UTC](https://discourse.mc-stan.org/t/tweedie-family-in-brms/9026/3 "2024-05-13T16:01:16Z")

</div>

hey!  
Did you ever create the costum family in the end?  
Could you share the code?  
Best regards,  
ale
