Learn R Programming

multifluo (version 1.1)

hotelling.test: Hotelling's T2 Test

Description

Tests multivariate differences between two samples with Hotelling's T2 Test

Usage

hotelling.test(matx, maty)

Arguments

matx

First sample (matrix with observations as lines and variables as columns)

maty

Second sample (matrix with observations as lines and variables as columns)

Value

Returns a list containing the stat and the p-value

References

Hotelling, H. (1931). "The generalization of Student's ratio." Annals of Mathematical Statistics 2. (3): 360 378

See Also

difftable,sri.test

Examples

Run this code
# NOT RUN {
A=matrix(rnorm(13.15),13,15)
B=matrix(rnorm(13.15),13,15)
hotelling.test(A,B)
# }

Run the code above in your browser using DataLab