Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zero-inflated Beta-binomial distribution #1310

Closed
wants to merge 6 commits into from
Closed

Add zero-inflated Beta-binomial distribution #1310

wants to merge 6 commits into from

Conversation

hdrab127
Copy link
Contributor

@hdrab127 hdrab127 commented Mar 9, 2022

Hey hope this zero-inflated Beta-binomial distribution implementation looks okay for #1243.

Mostly followed https://cran.r-project.org/web/packages/brms/vignettes/brms_customfamilies.html and the other families/code already in brms.

Here's a rough example using it with the data from Example 13.1 of McElreath's Statistical Rethinking: https://hdrab127.github.io/brms-zibb-example/brms_zeroinflated_betabinomial.html#model-4-zero-inflated-beta-binomial.

Happy to make any changes or add further tests/docs if it helps. Keen to learn more brms and contribute where possible as might be using a bit this year.

Thanks,
Hayden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant