The Mantel-Haenszel test performs a chi-square test of independence on a three-dimensional contingency table. It is used for a contingency table constructed from three factors.
The returned p value should be interpreted carefully. Its validity depends on the assumption that certain sums of expected cell counts are at least moderately large. Even when cell counts are adequate, the chi-square is only a large-sample approximation to the true distribution of the Mantel-Haenszel statistic under the null hypothesis.
To perform a Mantel-Haenszel chi-square test
Choose Statistics Compare Samples
Counts and Proportions
Mantel-Haenszel Chi-Square. The dialog shown below appears.
The Mantel-Haenszel Chi-Square Test has the following options:
Data Set
Specify a data set.
Variable 1
Specify the factor column that contains the first classification variable. This variable must have exactly two levels.
Variable 2
Specify the factor column that contains the second classification variable. This variable must also have exactly two levels.
Stratification Variable
Specify the factor column that contains the third classification variable.
Apply Continuity Correction
Check this to apply a correction for continuity. See the online Help for mcnemar.test for an algebraic definition of the continuity correction.
Enter the name for the object in which to save the results of the analysis.
Print Results
Select this to print out the results of the analysis in the designated output window.
Related S-PLUS language functions
mantelhaen.test, print.htest, menuMantelhaen