Description Usage Arguments Value Author(s) Examples
Computes posterior distribution of two proportions with a discrete prior
1 | two_p_update(prior, s1f1, s2f2)
|
prior |
prior probability matrix where the rows and columns are labeled with the values of the proportions |
s1f1 |
number of successes and number of failures from first sample |
s2f2 |
number of successes and number of failures from second sample |
posterior probability matrix
Jim Albert
1 2 3 4 | prior <- testing_prior()
s1f1 <- c(3, 10)
s2f2 <- c(8, 20)
two_p_update(prior, s1f1, s2f2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.