ci_lower: Lower/Upper Confidence Intervals

View source: R/confidence.R

ci_lowerR Documentation

Lower/Upper Confidence Intervals

Description

Calculate lower and upper confidence intervals given a mean, standard deviation, sample size, and confidence level. You may want to use ci_var() to calculate all values quickly.

Usage

ci_lower(mean, ssd, n, conf = 0.95)

ci_upper(mean, ssd, n, conf = 0.95)

Arguments

mean

Numeric. Mean: mean(var, na.rm = TRUE)

ssd

Numeric. Standard deviation: sd(var, na.rm = TRUE)

n

Integer. Amount of observations: n()

conf

Numeric (0-1). Confidence level.

Value

Vector with confidence limit value.

See Also

Other Confidence: ci_var()

Examples

ci_lower(100, 5, 10)
ci_upper(100, 5, 10)

lares documentation built on Sept. 13, 2024, 1:08 a.m.