wald2ci {PropCIs} | R Documentation |
Wald interval with the possibility to adjust according to Agresti, Caffo (2000) for difference in proportions and independent samples.
Description
Wald interval with the possibility to adjust according to Agresti, Caffo (2000) for difference in proportions and independent samples. The Agresti-Caffo interval adds 1 to x1 and x2 and adds 2 to n1 and n2.
Usage
wald2ci(x1, n1, x2, n2, conf.level, adjust)
Arguments
x1 |
success counts in sample 1 |
n1 |
sample size in sample 1 |
x2 |
success counts in sample 2 |
n2 |
sample size in sample 2 |
conf.level |
confidence coefficient |
adjust |
option to adjust the Wald interval to the Agresti-Caffo interval for better performance |
Details
If adjust=AC
is chosen, the standard Wald interval is modified
to the Agresti-Caffo adjusted CI (American Statistician, 2000)
Value
A list with class '"htest"' containing the following components:
conf.int |
a confidence interval for the difference in proportions. |
estimate |
estimated difference in proportions |
References
Agresti, A. (2002) Categorical Data Analysis. Wiley, 2nd Edition. Agresti, A., Caffo, B.(2000) Simple and effective confidence intervals for proportions and difference of proportions result from adding two successes and two failures. The American Statistician 54 (4), 280–288.