Distribution function of truncated negative binomial distribution and random draws from the distribution (uses rejection sampling).
1 2 |
x |
value at which density is evaluated |
mu |
mean of the distribution |
dispersion |
dispersion parameter |
l.bound |
the lower bound of truncation |
N |
Number of draws |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.