binMtoMethods {binMto}R Documentation

CI for difference of two proportions based on standard normal approximation

Description

For internal use.

Usage

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)

Arguments

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"

Value

A list containing

conf.int vector giving lower and upper bound
estimate estimated difference px-py

Author(s)

Frank Schaarschmidt

References

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.

See Also

prop.test, chisq.test


[Package binMto version 0.0-3 Index]