cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
Chi Square Tests for a Two-Way Table

Use to test for independence or homogeneity of two categorical variables. If comparing only two groups with a binary outcome, refer to the Two Proportions Test and Confidence Interval guide.

The Contingency Table Analysis  

  1. From an open JMP® data table, select Analyze > Fit Y by X.
  2. Click on a categorical variable from Select Columns, and click Y, Response (categorical variables have red or green bars).
  3. Click on another categorical variable and click X, Factor.
  4. Click OK. The Contingency Analysis output will display.

By defaut, a Mosaic Plot, Contingeny Table, and Chi-Square Tests are shown. See the Mosaic Plot and Contingency Table guide for more information.

Car Poll.jmp (Help > Sample Data Folder)Car Poll.jmp (Help > Sample Data Folder)

 

 

 

 

 

 

 

 

 

 

 

gail_massari_2-1753996890900.png

gail_massari_3-1753996909301.png

 

 

Chi-Square Tests

By default, JMP provides results for two chi-square tests under “Tests” – the Likelihood Ratio and Pearson.

  • If both variables can be considered as response (Y) variables, these chi-square statistics test that the variables are independent.
  • If one variable is considered a response (Y) and the other as a fixed factor (X), the tests are for homogeneity of Y across X.

Note: Additional analysis options are available under the Red Triangle including Analysis of Means for Proportions, Measures of Association, and Exact Tests.

 

Visit Basic Analysis > Contingency Analysis in JMP Help to learn more.

 

Recommended Articles