Learn R Programming

kim (version 0.6.1)

ci_of_mean: 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)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab