diffpropci.mp: Adjusted Wald interval for a difference of proportions with...

Description Usage Arguments Details Value References Examples

View source: R/diffpropci.mp.R

Description

Adjusted Wald interval for a difference of proportions with matched pairs. This is the interval called Wald+2 in Agresti and Min (2005). Adds 0.5 to each cell before constructing the Wald CI

Usage

1
diffpropci.mp(b, c, n, conf.level)

Arguments

b

off-diag count

c

off-diag count

n

sample size

conf.level

confidence coefficient 1-α

Details

The interval is truncated, when it overshoots the boundary

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. and Min, Y. (2005) Simple improved confidence intervals for comparing matched proportions. Statistics in Medicine 24 (5), 729–740.

Examples

1
diffpropci.mp(b = 40, c = 20, n = 160, conf.level = 0.95)

Example output

data:  

95 percent confidence interval:
 -0.21601726 -0.03089632
sample estimates:
[1] -0.1234568

PropCIs documentation built on May 2, 2019, 5:49 a.m.