powered by
Returns the confidence interval of the mean of a numeric vector.
ci_of_mean(x = NULL, confidence_level = 0.95, notify_na_count = NULL)
the output will be a named numeric vector with the lower and upper limit of the confidence interval.
a numeric vector
What is the desired confidence level expressed as a decimal? (default = 0.95)
if TRUE, notify how many observations were removed due to missing values. By default, NA count will be printed only if there are any NA values.
TRUE
ci_of_mean(x = 1:100, confidence_level = 0.95) ci_of_mean(mtcars$mpg)
Run the code above in your browser using DataLab