Approximate Bayesian tail confidence interval for the relative risk using simulation method
rrci.bayes(x1,n1,x2,n2,a,b,c,d,conf.level, nsim)
Binomial variate group 1
Sample size group 1
Binomial variate group 2
Sample size group 2
beta prior for x1
beta prior for x2
beta prior for n1
beta prior for n2
confidence level
number of simulations with default 10M
Confidence interval for the relative risk with given confidence level.
Agresti, A. (2002) Categorical Data Analysis. Wiley, 2nd Edition.