Learn R Programming

PropCIs (version 0.3-0)

midPci: mid-P confidence interval adaptation of the Clopper-Pearson interval

Description

mid-P confidence interval adaptation of the Clopper-Pearson interval

Usage

midPci(x, n, conf.level)

Arguments

x

number of successes

n

number of trials

conf.level

confidence coefficient

Value

A list with class '"htest"' containing the following components:

conf.int

a confidence interval for the difference in proportions.

References

Agresti, A., Gottard, A. (2005) Randomized confidence intervals and the mid-P approach, discussion of article by C. Geyer and G. Meeden, Statistical Science 20, 367--371.

Examples

Run this code
# NOT RUN {
midPci(x = 15, n = 112, conf.level = 0.95)
  
# }

Run the code above in your browser using DataLab