Computes the lower limit and upper limit of the 95 percent confidence interval of percentage estimates
Usage
CI(x, ...)
Value
A 3 column matrix.
Column 1: percentage estimate
Column 2: lower limit of the confidence interval
column 3: upper limit of the confidence interval
Arguments
x
a two-dimensional table, matrix or data.frame with 2 columns, giving the counts of successes and failures, respectively
...
other arguments to pass to prop.test, eg conf.level
Details
Simple wrapper of prop.test. The default confidence interval is 95 percent, but can be modified passing values to prop.test by the conf.level argument.