neg_binomial_2_lpmf_stan | R Documentation |
There are two negative binomial density functions built into Stan:
real neg_binomial_lpmf(ints n | reals alpha, reals beta) real neg_binomial_2_lpmf(ints y | reals mu, reals phi)
The second one uses the mean and over-dispersion parameterisation familiar to ecologists.
See https://mc-stan.org/docs/2_19/functions-reference/negative-binomial-distribution.html and https://mc-stan.org/docs/2_19/functions-reference/nbalt.html for more details.
cat(neg_binomial_2_lpmf_stan[["source_code"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.