Code covered by the BSD License  

Highlights from


3.7 | 3 ratings Rate this file 19 Downloads (last 30 days) File Size: 7.84 KB File ID: #3694




07 Jul 2003 (Updated )

File gives several sphericity tests as Bartlett and Mauchly to choose.

| Watch this File

File Information

Basically, here we are testing if all the p-axis have the same variability or eigenvalues. There are two tests to choose in a menu form such as the Bartlett and Mauchly's sphericity tests.

Only needs to input the multivariate data matrix and the significance level (default = 0.05). It outputs the sample-size, the p-variables, the observed statistic used to test any deviation from an expected sphericity and the probability that null Ho: is true.

MATLAB release MATLAB 5.3 (R11)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
12 Jan 2013 sharika

As per the formula given in this link

all calculations require p = degrees of freedom of the factor rather than the levels of the factor.

14 Mar 2012 Ben

I second the results deviating massively from SPSS output (regarding Mauchly). p values can differ by as much as 3 orders of magnitude!

06 Aug 2011 Amarelo

I noticed a clear difference in results by this function and a similar test in SPSS (significant vs. non-significant findings). My data contains scores for 17 participants (rows) across three conditions (columns) as input into a one-way ANOVA for repeated measures. What is weird is that the degrees of freedom are completely different, being 2 in SPSS and 5 with this function, as is also the case with the other computed statistics. Which one is right?

01 Feb 2010 Kay Thurley  
29 Sep 2005 grace kelly  

Contact us