ci_1pop_exp {statBasics}R Documentation

Confidence interval for a population mean (exponential distribution)

Description

Confidence interval for a population mean (exponential distribution)

Usage

ci_1pop_exp(x, conf_level = 0.95, type = "two.sided", na.rm = F)

Arguments

x

a (non-empty) numeric vector.

conf_level

confidence level of the returned confidence interval. Must be a single number between 0 and 1.

type

a character string specifying the type of confidence interval. Must be one of "two.sided" (default), "right" or "left".

na.rm

a logical value indicating whether NA values should be removed before the computation proceeds.

Details

"lower_ci" and "upper_ci" are computed using pivotal quantity, as explained by Montgomery and Runger <<ISBN: 978-1-119-74635-5>.

Value

A 1 x 3 tibble with 'lower_ci', 'upper_ci', and 'conf_level' columns. Values correspond to the lower and upper bounds of the confidence interval, and the confidence level, respectively.

Examples

x <- rexp(1000)
ci_1pop_exp(x)


[Package statBasics version 0.2.0 Index]