binMtoMethods {binMto} | R Documentation |
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)
nx |
a single numeric value, number of trials in sample x |
ny |
a single numeric value, number of trials in sample y |
X |
a single numeric value, number of successes in sample x |
Y |
a single numeric value, number of successes in sample y |
quantile |
e.g. qnorm(p=0.975) for a two-sided 95 percent confidence interval |
alternative |
a character string, one of "two.sided", "less", "greater" |
A list containing
conf.int |
vector giving lower and upper bound |
estimate |
estimated difference px-py |
Frank Schaarschmidt
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.
prop.test
, chisq.test