MeanCI: Calculates the mean and 95% confidence interval of a numeric...

Description Usage Arguments Value Author(s) Examples

View source: R/mechkar.R

Description

This function return a vector containing the mean and 95% confidence interval of a numeric vector.

Usage

1

Arguments

x

a numeric vector

round

the number of decimals to be returned. Default is 3

Value

This function returns a named numeric vector with the mean and the lower and upper confidence interval.

Author(s)

Tomas Karpati M.D.

Examples

1
2
3
### calculates the mean and 95% CI of a given vector
x <- c(1,0,1,0,0,0,1,1,0)
mn <- MeanCI(x)

mechkar documentation built on March 13, 2020, 2:30 a.m.