View source: R/popsim1d_superfast.R
mcmc_multinomial_superfast | R Documentation |
Sample from the posterior predictive of a 1-d multinomial population (very quickly)
mcmc_multinomial_superfast(obs, N, nsamples, alpha)
obs |
numeric vector representing the observed sample. |
N |
size of the population. |
nsamples |
number of samples to draw |
alpha |
hyperparameter for dirichlet prior; can be either a single number or a numeric vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.