Update the posterior of a beta_dist
Source: R/beta-distribution.R
update_posterior.beta_dist_list.Rd
Update the posterior of a beta_dist
Usage
# S3 method for beta_dist_list
update_posterior(x, ..., pos = NULL, neg = NULL, n = NULL)
Arguments
- x
a
beta_dist
orbeta_dist_list
acting 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)