ciTWx(x, n, alp)
x
and n
; that is the point estimator
divided by its estimated standard error. Essential boundary modification is when $x = 0 or n$,
$$\hat{p}=\frac{(x+2)}{(n+4)}{phat=(x+2)/(n+4)}$$prop.test and binom.test
for equivalent base Stats R functionality,
binom.confint
provides similar functionality for 11 methods,
wald2ci
which provides multiple functions for CI calculation ,
binom.blaker.limits
which calculates Blaker CI which is not covered here and
propCI
which provides similar functionality.
Other Base methods of CI estimation given x & n: PlotciAllxg
,
PlotciAllx
, PlotciEXx
,
ciASx
, ciAllx
,
ciBAx
, ciEXx
,
ciLRx
, ciLTx
,
ciSCx
, ciWDx
x=5; n=5; alp=0.05
ciTWx(x,n,alp)
Run the code above in your browser using DataLab