estimate_proportions: Exact posterior for proportions of one categorical variable

Description Usage Arguments Details Value Examples

View source: R/estimate_proportions.R

Description

Exact posterior estimation for proportions of one categorical variable using dirichlet prior and multinomial likelihood.

Usage

1
estimate_proportions(x, alpha = rep(1, length(x)))

Arguments

x

a vector of counts ("successes" in each group)

alpha

a vector of prior concentration parameters (default uniform)

Details

Assumes multinomial likelihood and Dirichlet prior

Value

the posterior distribution estimate

Examples

1
2
3
4
5
## Not run: 
x = c(100, 200, 300)
post = estimate_proportions(x)

## End(Not run)

iNZightVIT/iNZightBayes documentation built on Dec. 20, 2021, 5:56 p.m.