diffpci(a, b, c, d, n, alpha)
Clopper, C. and Pearson, E.S. (1934). The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 26, 404-413.
Vollset, S.E. (1993). Confidence intervals for a binomial proportion. Statistics in Medicine 12. 809-824.
Lange, K. and Brunner, E. (2012). Sensitivity, Specificity and ROC-curves in multiple reader diagnostic trials-A unified, nonparametric approach. Statistical Methodology 9, 490-500.
Fleiss, Joseph L. et al. (2003). Statistical Methods for Rates and Proportions. Wiley.
# a=59, b=23, c=3, d=37, n=122, type I error is 0.05
diffpci(59,23,3,37,122,0.05)
Run the code above in your browser using DataLab