Description Usage Arguments Details Value Examples
View source: R/estimate_proportions.R
Exact posterior estimation for proportions of one categorical variable using dirichlet prior and multinomial likelihood.
1 | 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) |
Assumes multinomial likelihood and Dirichlet prior
the posterior distribution estimate
1 2 3 4 5 | ## Not run:
x = c(100, 200, 300)
post = estimate_proportions(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.