exact.midp(b, c, n, alpha)
Newcombe, R.G. (1998). Improved confidence intervals for the difference between binomial proportions based on paired data. Statistics in Medicine 17. 2635-2650.
# b=10, c=20, n=50, type I error is 0.05
conf.int=exact.midp(10,20,50,0.05)
Run the code above in your browser using DataLab