estimate_proportions.RdExact posterior estimation for proportions of one categorical variable using dirichlet prior and multinomial likelihood.
estimate_proportions(x, alpha = rep(1, length(x)))
| x | a vector of counts ("successes" in each group) |
|---|---|
| alpha | a vector of prior concentration parameters (default uniform) |
the posterior distribution estimate
Assumes multinomial likelihood and Dirichlet prior
if (FALSE) { x = c(100, 200, 300) post = estimate_proportions(x) }