powered by
Returns the upper binomial confidence limit using the Wilson approximation.
binciWu(x,n,alpha=0.05,trueval=TRUE,na.rm=TRUE)
The number of successes or failures for which the CI is to be calculated.
The number of trials as above.
The desired coverage - 0.05 produces 95 percent coverage
The value representing the outcome of interest for the CI.
Argument needed to make this work
The upper binomial confidence interval
binciWu now calls binciW and returns the upper limit.
binciWl
# NOT RUN { binciWl(c(rep(5,TRUE),rep(37,FALSE))) # }
Run the code above in your browser using DataLab