This version of the Help is no longer updated. See JMP.com/help for the latest version.

.
Basic Analysis > Contingency Analysis > Additional Examples of the Contingency Platform > Example of a Two Sample Test for Proportions
Publication date: 07/30/2020

Example of a Two Sample Test for Proportions

This example uses the Car Poll.jmp sample data table. Examine the probability of being married for males and females.

1. Select Help > Sample Data Library and open Car Poll.jmp.

2. Select Analyze > Fit Y by X.

3. Select marital status and click Y, Response.

4. Select sex and click X, Factor.

5. Click OK.

6. Click the red triangle next to Contingency Analysis of marital status By sex and select Two Sample Test for Proportions.

Figure 7.17 Example of the Two Sample Test for Proportions Report 

In this example, you are comparing the probability of being married between females and males. See the Row% in the Contingency Table to obtain the following:

P(Married|Female) = 0.6884

P(Married|Male) = 0.6121

The difference between these two numbers, 0.0763, is the Proportion Difference shown in the report. The two-sided confidence interval is [-0.03175, 0.181621]. The p-value by the adjusted Wald method corresponding to the confidence interval is 0.1686, which is close to the p-value (0.1665) by Pearson’s Chi-square test. Generally, Pearson’s Chi-square test is more popular than the modified Wald’s test for testing the difference of two proportions.

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