powered by
Computes posterior distribution of two proportions with a discrete prior
two_p_update(prior, s1f1, s2f2)
prior probability matrix where the rows and columns are labeled with the values of the proportions
number of successes and number of failures from first sample
number of successes and number of failures from second sample
posterior probability matrix
# NOT RUN { prior <- testing_prior() s1f1 <- c(3, 10) s2f2 <- c(8, 20) two_p_update(prior, s1f1, s2f2) # }
Run the code above in your browser using DataLab