Calculates the confidence interval of a vector of data.

CI(x, ci = 0.95)

Arguments

x

a vector of data

ci

the confidence interval to be calculated

Value

upper

Upper bound of interval.

mean

Mean of data.

lower

Lower bound of interval.

Examples

CI(rnorm(100))
#>      upper       mean      lower 
#>  0.2793116  0.0707892 -0.1377332