two_p_update {ProbBayes}R Documentation

Posterior updating of two proportions

Description

Computes posterior distribution of two proportions with a discrete prior

Usage

  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

Value

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)

[Package ProbBayes version 1.1 Index]