ci_Z: Confidence interval for mean (known sigma)

ci_zR Documentation

Confidence interval for mean (known sigma)

Description

Calculates the confidence interval for the mean with known standard deviation, using the Z-statistic (normal distribution).

Usage

ci_z(x, sig, n, conf.level = 0.95, digits = 2)

Arguments

x

Sample mean

sig

Population standard deviation

n

Sample size

conf.level

Confidence level to use for the confidence interval (Default is 0.95)

digits

Number of digits to round to (Default is 2)

Value

A tibble with the mean, and lower and upper ends of the confidence interval

Examples

x <- 80
sig <- 15
n <- 20
ci_z(x, sig, n)


maxgav13/GMisc documentation built on June 12, 2022, 3:48 a.m.