ci_t: Confidence interval for mean (unknown sigma)

ci_tR Documentation

Confidence interval for mean (unknown sigma)

Description

Calculates the confidence interval for the mean with unknown standard deviation, using the t-statistic (t distribution).

Usage

ci_t(x, s, n, conf.level = 0.95, digits = 2)

Arguments

x

Sample mean

s

Sample 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)

Details

It can work for dependent (paired) samples using the mean and standard deviation of differences

Value

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

Examples

x <- 80
s <- 15
n <- 20
ci_t(x, s, n)


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