Approximate Bayesian HPD confidence interval for different of proportions using independent priors
diffci.bayes.hpd(x1,n1,x2,n2,a,b,c,d,conf.level)
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
Confidence interval with given confidence level.
Agresti, A. (2002) Categorical Data Analysis. Wiley, 2nd Edition.