Mausphercnst

Mauchly's sphericity test for orthogonal contrasts.
973 Downloads
Updated 22 Apr 2008

View License

Other hypothesis used with the Mauchly's sphericity test is on the orthonormalized contrasts,

H0: C’SC = s^2I , where C is any full-rank (p-1) x p matrix of orthonormal contrasts.

A is the nonorthonormalized contrasts matrix.

C = GMO(A’) is a (p-1) × p column-orthonormal matrix (by the Gram-Schmidt orthonormalization procedure)

L = q^q|C’SC|/[tr(C’SC)]^q

LL = - (N – 1 – ((2q^2 + q + 2)/(6q)) ln L

= - (N – 1 – ((2q^2 + q + 2)/(6q)) [ln|C’SC| – q ln [tr(C’SC)/q]]

This statistic has an approximate Chi-square distribution with 0.5q(q + 1) – 1 = q(q + 1)/2 – 1 degrees of freedom.

Inputs:
X - multivariate data matrix.
alpha - significance level (default = 0.05).

Output:
Complete table results

Cite As

Antonio Trujillo-Ortiz (2024). Mausphercnst (https://www.mathworks.com/matlabcentral/fileexchange/19648-mausphercnst), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Mausphercnst/Mausphercnst/

Version Published Release Notes
1.0.0.0

It was added an appropriate format to cite this file.