Update the posterior of a beta_dist
Usage
# S3 method for beta_dist
update_posterior(x, ..., pos = NULL, neg = NULL, n = NULL)Arguments
- x
a
beta_distorbeta_dist_listacting as the prior- ...
not used
- pos
positive observation(s)
- neg
negative observation(s)
- n
number observations
Examples
update_posterior(beta_dist(shape1=1,shape2=1), neg=10, n=30)
#> 66.0% [48.6%—80.8%] (N=32.0)