Learn R Programming

PropCIs (version 0.1-6)

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

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

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

Arguments

b
off-diag count
c
off-diag count
n
sample size
conf.level
confidence coefficient

Value

  • A list with class "htest" containing the following components:
  • conf.inta confidence interval for the difference in proportions.
  • estimateestimated difference in proportions

Details

The interval is truncated, when it overshoots the boundary

References

A. Agresti and Y. Min, 2004. Improved confidence intervals for comparing matched proportions, Statistics in Medicine

Examples

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

Run the code above in your browser using DataLab