For the latest version of JMP Help, visit JMP.com/help.


Publication date: 04/21/2023

Example of a Cochran-Mantel-Haenszel Test

Use the Contingency platform to examine the relationship between hot dog type and taste.

1. Select Help > Sample Data Folder and open Hot Dogs.jmp.

2. Select Analyze > Fit Y by X.

3. Select Type and click Y, Response.

4. Select Taste and click X, Factor.

5. Click OK.

6. Click the Contingency Analysis red triangle menu and select Cochran Mantel Haenszel.

7. Select Protein/Fat as the grouping variable and click OK.

Figure 7.10 Example of a Cochran-Mantel-Haenszel Test 

Example of a Cochran-Mantel-Haenszel Test

Notice the following:

The Tests report shows a marginally significant chi-square probability of about 0.0799, indicating some significance in the relationship between hot dog taste and type.

The Cochran-Mantel-Haenszel report shows that the p-value for the general association of categories is 0.2816. There does not appear to be a relationship between hot dog taste and type when the comparison is controlled by the protein/fat content.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).