Description Usage Arguments Value Author(s) Examples
View source: R/two_p_summarize.R
Computes posterior of difference P2 - P1 of a probability matrix of two proportions
1 | two_p_summarize(prob_matrix)
|
prob_matrix |
probability matrix where the rows and columns are labeled with the values of the proportions |
data frame with variables diff21 and Prob where diff21 = P2 - P1
Jim Albert
1 2 3 | # use uniform prior over values .2, .3, .4
prior <- testing_prior(.2, .4, 3, uniform=TRUE)
two_p_summarize(prior)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.