Learn R Programming

diffdepprop (version 0.1-9)

wald.cc: Calculates a Wald confidence interval with continuity correction

Description

wald.cc gives a two-sided Wald confidence interval with continuity correction for the difference of two dependent proportions. The continuity correction factor is $\frac{1}{n}$. Data are assumed to be of a fourfold table, which contains the numbers of concordance and the numbers of discordance of two dependent methods.

Usage

wald.cc(b, c, n, alpha)

Arguments

b
first number of discordant pairs in a fourfold table as described above
c
second number of discordant pairs in a fourfold table as described above
n
number of observed objects
alpha
type I error; between zero and one

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

Fleiss, Joseph L. et al. (2003). Statistical Methods for Rates and Proportions. Wiley.

Examples

Run this code
# b=10, c=20, n=50, type I error is 0.05
conf.int=wald.cc(10,20,50,0.05)

Run the code above in your browser using DataLab