Code covered by the BSD License  

Highlights from
StuMaxtest

2.0

2.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 4.14 KB File ID: #6367

StuMaxtest

by Antonio Trujillo-Ortiz

 

22 Nov 2004 (Updated 28 Jan 2005)

Stuart-Maxwell's Test for Marginal Homogeneity.

| Watch this File

File Information
Description

This file performs the Stuart-Maxwell's test for all the marginal homogeneity (i.e. across all the categories simultaneously) for each of the two sample times (nominal samples). Obviously, it need a square KxK table.

It is a non-parametric statistical test. The test was proposed by Stuart (1955), Maxwell (1970) and Everitt (1977).

Stuart-Maxwell's test is asymptotically equivalent to the Bhapkar's test by a n-times value. This because the Bhapkar's test works with the marginal probabilities for category i.

Stuart and Maxwell's test interpreted as a Chi-squared value with degrees of freedom df equal to K - 1. In the case of K = 2, the Stuart-Maxwell statistic and the McNemar statistic are identically equal.

The null hypothesis is stated that the proportion of ordinal values in sample time 2 is equal to the proportion of ordinal values in sample time 1.

This m-file needs to input X-data matrix defined by the KxK observed frequency cells, t-desired test [t = 1, one-tail; t = 2, two-tail (default)], and alpha-significance level (default = 0.05).

The output is a table with the SM statistic, number of categories, degrees of freedom and the P-values.

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 (2)
16 Dec 2007 al key

could not handle the situation that there as perfect matched row and column.

26 Feb 2008 Antonio Trujillo-Ortiz

Hi al key,

What really you mean with...'could not handle the situation that there as perfect matched row and column. '?

Your comment is very ambiguous and your rate its very strict. In order to correct some bugs, I'm awaiting for a more professional inquiry.

Please login to add a comment or rating.
Updates
29 Nov 2004

It was added an appropriate format to cite this file.

28 Jan 2005

Text was improved.

Tag Activity for this File
Tag Applied By Date/Time
statistics Antonio Trujillo-Ortiz 22 Oct 2008 07:36:16
probability Antonio Trujillo-Ortiz 22 Oct 2008 07:36:16
stuartmaxwell Antonio Trujillo-Ortiz 22 Oct 2008 07:36:16
marginal homogeneity Antonio Trujillo-Ortiz 22 Oct 2008 07:36:16
bhapkar Antonio Trujillo-Ortiz 22 Oct 2008 07:36:16

Contact us at files@mathworks.com