File Exchange

image thumbnail


version (4.09 KB) by Antonio Trujillo-Ortiz
Computes a Multivariate Analysis of Variance for equal or unequal sample sizes.

1 Download

Updated 22 Oct 2003

View License

Computes a Multivariate Analysis of Variance for equal or unequal sample sizes. Testing of the mean differences in several variables among several samples (groups).

This MATLAB macro consider the matrices of sum-of-squares between (H) and within (E) to compute the Wilks'lambda (L) and according to the number of data it chooses to approximate to the Chi-square distribution (large sample) or through several multiple F-aproximations such as Rao, Pillai, Lawley-Hotelling and Roy tests (small sample).

It needs to input the X-data matrix [size of matrix must be n-by-(1+p); sample=column 1, variables=column 2:p]and alpha-significance (default = 0.05). The output is a complete multivariate analysis of variance table.

Comments and Ratings (4)


Congratulation !
Very good work !
R. Mansilla

Michael Hamman

My Dear Ji Cling,

Regularly I visit this FEX site in which excellent contributions for the fast solution of diverse types of problems in several disciplines have been given. The accusation that you are causing is very delicate. I do not know you. Neither the authors. We known them only by the references given in their author page. Only what I believe is in the quality of ethics of each one of them and ours. We are serious people dedicated to our work in the most diverse specialties. To be certain what you say. Then not alone this author does cheating but also all the others. Even you, that in principle, I think you are not signing with your true name. Finally, or really the community are honestly dawnloaded the m-files or finally someone are doing a very bad play. This because there exists a lack of control on this.

Best Wishes.


Ji Cling

Shame on you.
Self downloading 1000ths of times to get to the top of the rank.

ryota kanai

this is really great.


Due to a lack of appreciation of the Roy's maximum root multivariate test, it was adequately corrected.

Due to a lack of appreciation of the error degrees of freedom for the Pillai's trace, Lawley-Hotelling's trace and Roy's maximum root multivariate tests, they were adequately corrected.

It was added an appropriate format to cite this file.

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux