Last data update: 2014.03.03

R: Calculates an exact conditional confidence interval using a...
exact.midpR Documentation

Calculates an exact conditional confidence interval using a mid-p interval.

Description

exact.midp gives a two-sided exact conditional confidence interval for the difference of two dependent proportions. It is built of a mid-p Interval. 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

exact.midp(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

Author(s)

Daniela Wenzel, Antonia Zapf

References

Vollset, S.E. (1993). Confidence intervals for a binomial proportion. Statistics in Medicine 12. 809-824.

Newcombe, R.G. (1998). Improved confidence intervals for the difference between binomial proportions based on paired data. Statistics in Medicine 17. 2635-2650.

Examples

# b=10, c=20, n=50, type I error is 0.05
conf.int=exact.midp(10,20,50,0.05)

Results