Calculates the confidence interval of a vector of data.

run_CI(x, ci = 0.95)

Arguments

x

(Required). vector. a vector of data.

ci

(optional). numeric. confidence interval to be calculated.

Value

upper

Upper bound of interval.

mean

Mean of data.

lower

Lower bound of interval.

References

https://github.com/cran/Rmisc/

Author

Created by Hua Zou (5/19/2022 Shenzhen China)

Examples

run_CI(rnorm(100))
#>      upper       mean      lower 
#>  0.0659322 -0.1126374 -0.2912069