Displaying 1 result from an estimated 1 matches for "binomvarci".
2008 Sep 26
0
Confidence interval for binomial variance
...erval (which is very conservative for this problem in this range).
The composite method gives reliable results over a wide range of rho.
This should suit the purpose until someone comes up with a more
theoretically sound method. Bootstrap is not reliable for n < 50, at least.
#09.26.08 02.50 binomVarCI.r
#copyright 2008 by Robert A LaBudde, all rights reserved
#CI for binomial sample variance
#created: 09.26.08 by r.a. labudde
#changes:
require('binGroup')
binomVarCI<- function (n, x, conf=0.95) {
p<- x/n #proportion
if (p<0.25 | p>0.75 | x==0 | x==n) { #use proportio...