Learn R Programming

IPAG (version 0.1.0)

mean_diff_ci: Confidence interval for the difference of means

Description

Confidence interval for the difference of means

Usage

mean_diff_ci(x, y, level = 0.99, paired = FALSE, na.rm = TRUE)

Value

Object of class 'mean_diff_ci'

Arguments

x

Numeric vector

y

Numeric vector

level

Confidence level (default 0.99)

paired

Logical; are the samples paired?

na.rm

Remove NA values

Examples

Run this code
x <- c(5.1, 4.9, 6.2, 5.8, 5.4)
y <- c(4.8, 4.7, 5.9, 5.2, 5.0)
mean_diff_ci(x, y)
mean_diff_ci(x, y, paired = TRUE)

Run the code above in your browser using DataLab