Last chance! 50% off unlimited learning
Sale ends in
binom.midp(x, n, conf.level=0.95)
binom.confint
function of the binom
packageuniroot
to determine the upper and lower
bounds of the mid-p confidence interval. The lower bound $p_l$ is found as the solution to the equation
The upper bound $p_u$ is found as the solution to the equation
Fosage, G.T. (2005) Modified exact sample size for a binomial proportion with special emphasis on diagnostic test parameter estimation, Statistics in Medicine 24(18):2857-66.
A. Agresti and A. Gottard (2005), Comment: Randomized Confidence Intervals and the Mid-P Approach, Statistical Science, 20(4):367--371
binom.midp(x=0:10,n=10)
binom.midp(x=0:5,n=5,conf.level=0.9)
Run the code above in your browser using DataLab