two_p_summarize function

Summaries of a probability matrix

Summaries of a probability matrix

Computes posterior of difference P2 - P1 of a probability matrix of two proportions

two_p_summarize(prob_matrix)

Arguments

  • prob_matrix: probability matrix where the rows and columns are labeled with the values of the proportions

Returns

data frame with variables diff21 and Prob where diff21 = P2 - P1

Author(s)

Jim Albert

Examples

# use uniform prior over values .2, .3, .4 prob_matrix <- testing_prior(.2, .4, 3, uniform=TRUE) two_p_summarize(prob_matrix)