ci_lower {lares}R 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)

[Package lares version 5.2.8 Index]