For internal use.
Add4(nx, ny, X, Y, quantile, alternative)
Add2(nx, ny, X, Y, quantile, alternative)
NHS(nx, ny, X, Y, quantile, alternative)
Wald(nx, ny, X, Y, quantile, alternative)a single numeric value, number of trials in sample x
a single numeric value, number of trials in sample y
a single numeric value, number of successes in sample x
a single numeric value, number of successes in sample y
e.g. qnorm(p=0.975) for a two-sided 95 percent confidence interval
a character string, one of "two.sided", "less", "greater"
A list containing
vector giving lower and upper bound
estimated difference px-py
Schaarschmidt, F., Biesheuvel, E., Hothorn, L.A. (2009): Asymptotic simultaneous confidence intervals for many-to-one comparisons of binary proportions in randomized clinical trials, Journal of Biopharmaceutical Statistics 19(2):292-310.
Agresti, A. and Caffo, B. (2000): Simple and effective confidence intervals for proportions and differences of proportions result from adding two successes and two failures. American Statistician 54 (4), 280-288.
Brown, L. and Li, X. (2005): Confidence intervals for two sample binomial distribution. Journal of Statistical Planning and Inference 130, 359-375.
Newcombe, R.G. (1998): Interval estimation for the difference between independent proportions: comparison of eleven methods. Statistics in Medicine 17, 873-890.
pairwise.prop.test