two_p_update function

Posterior updating of two proportions

Posterior updating of two proportions

Computes posterior distribution of two proportions with a discrete prior

two_p_update(prior, s1f1, s2f2)

Arguments

  • 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

Returns

posterior probability matrix

Author(s)

Jim Albert

Examples

prior <- testing_prior() s1f1 <- c(3, 10) s2f2 <- c(8, 20) two_p_update(prior, s1f1, s2f2)