ciDiffMeans: T^2 Confidence Interval for the Difference in Means

Description Usage Arguments Value Examples

View source: R/ciDiffMeans.R

Description

We use equation 5-25, found on page 226 of our book, Applied Multivariate Statistical Analysis, 6th Edition, by Johnson and Wichern

Usage

1
ciDiffMeans(data, alpha = 0.05, i = 1, k = 2)

Arguments

data

a data.frame

alpha

the significance level, set to the standard 0.05

i

the first column in our data frame that we want to use in our calculation

k

the second column in our data frame that we want to use in our calculation

Value

The (1 - α)*100% confidence interval for the difference in means, μ_i - μ_k

Examples

1
2
testData <- datasets::mtcars
ciDiffMeans(data = testData, i = 1, k = 2)

leahpom/MATH5793POMERANTZ documentation built on May 10, 2021, 9:52 a.m.