Code covered by the BSD License  

Highlights from
MBoxtstwod

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 3.49 KB File ID: #6548

MBoxtstwod

by Antonio Trujillo-Ortiz

 

14 Dec 2004 (Updated 12 Jan 2005)

Multivariate statistical testing for the homogeneity of covariance matrices without data by the Box.

| Watch this File

File Information
Description

From the covariance matrices (without data), groups size vector and a significance level (default = 0.05), the homogeneity covariance matrices are testing by the Box's M, it gives a Chi-square or F approximation in function of the groups sample-size.

Outputs are the Box's M statistic, approximation statistic test, number of groups, number of variables, degrees of freedom of the approximation statistic test and P-value.

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
14 Dec 2011 Kadir

Antonio,

There's a contradiction on the variables P1 & P2 in the following part of the script:

fprintf('%10.4f%11.4f%8.i%10.i%13.i%14.i%13.4f\n',MB,F2,g,p,v1,v22,P2);
        fprintf('--------------------------------------------------------------------------------\n');
        fprintf('With a given significance level of:% 3.2f\n', alpha );
        if P1 >= alpha
            disp('Covariance matrices are not significantly different.');
        else
            disp('Covariance matrices are significantly different.');
        end;

Agree?

Please login to add a comment or rating.
Updates
12 Jan 2005

It was added an appropriate format to cite this file.

Tag Activity for this File
Tag Applied By Date/Time
statistics Antonio Trujillo-Ortiz 22 Oct 2008 07:38:06
probability Antonio Trujillo-Ortiz 22 Oct 2008 07:38:06
multivariate Antonio Trujillo-Ortiz 22 Oct 2008 07:38:06
covariance homogeneity test Antonio Trujillo-Ortiz 22 Oct 2008 07:38:06
boxs m test Antonio Trujillo-Ortiz 22 Oct 2008 07:38:06
statistic Antonio Trujillo-Ortiz 22 Oct 2008 07:38:06

Contact us at files@mathworks.com