mcmc_multinomial_superfast: Sample from the posterior predictive of a 1-d multinomial...

View source: R/popsim1d_superfast.R

mcmc_multinomial_superfastR Documentation

Sample from the posterior predictive of a 1-d multinomial population (very quickly)

Description

Sample from the posterior predictive of a 1-d multinomial population (very quickly)

Usage

mcmc_multinomial_superfast(obs, N, nsamples, alpha)

Arguments

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


ctgrubb/lemur.pack documentation built on May 7, 2023, 4:13 a.m.