ci_of_mean: Confidence Interval of the Mean of a Vector

View source: R/ci_of_mean.R

ci_of_meanR Documentation

Confidence Interval of the Mean of a Vector

Description

Returns the confidence interval of the mean of a numeric vector.

Usage

ci_of_mean(x = NULL, confidence_level = 0.95, notify_na_count = NULL)

Arguments

x

a numeric vector

confidence_level

What is the desired confidence level expressed as a decimal? (default = 0.95)

notify_na_count

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.

Value

the output will be a named numeric vector with the lower and upper limit of the confidence interval.

Examples

ci_of_mean(x = 1:100, confidence_level = 0.95)
ci_of_mean(mtcars$mpg)

kim documentation built on Oct. 2, 2024, 1:06 a.m.