powered by
Tests multivariate differences between two samples with Hotelling's T2 Test
hotelling.test(matx, maty)
First sample (matrix with observations as lines and variables as columns)
Second sample (matrix with observations as lines and variables as columns)
Returns a list containing the stat and the p-value
Hotelling, H. (1931). "The generalization of Student's ratio." Annals of Mathematical Statistics 2. (3): 360 378
difftable,sri.test
# 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