ci_z2: Confidence interval for difference of the mean between 2...

ci_z2R Documentation

Confidence interval for difference of the mean between 2 samples (known sigmas)

Description

Calculates the confidence interval for the difference of the mean between 2 samples (Z distribution).

Usage

ci_z2(x1, sig1, n1, x2, sig2, n2, conf.level = 0.95, digits = 2)

Arguments

x1

Sample's 1 mean

sig1

Population's 1 standard deviation

n1

Sample size of sample 1

x2

Sample's 2 mean

sig2

Population's 2 standard deviation

n2

Sample size of sample 2

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 difference of means, and lower and upper ends of the confidence interval

Examples

x1 <- 42
sig1 <- 8
n1 <- 75
x2 <- 36
sig2 <- 6
n2 <- 50
ci_z2(x1, sig1, n1, x2, sig2, n2)


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