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


Publication date: 07/24/2024

Example of the Relative Risk Option

Use the Contingency platform to examine the relative probabilities of being married and single for the participants in a survey.

1. Select Help > Sample Data Folder 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 Contingency Analysis red triangle menu and select Relative Risk.

The Choose Relative Risk Categories window appears.

Figure 7.12 The Choose Relative Risk Categories Window 

The Choose Relative Risk Categories Window

Note the following about the Choose Relative Risk Categories window:

If you are interested in only a single response and factor combination, you can select that here. For example, if you clicked OK in the window in Figure 7.12, this is the calculation:

Equation shown here

If you would like to calculate the risk ratios for all (2 × 2 = 4) combinations of response and factor levels, select the Calculate All Combinations check box (Figure 7.13).

7. Ask for all combinations by selecting the Calculate All Combinations check box. Leave all other default selections as is.

Figure 7.13 Example of the Risk Ratio Report 

Example of the Risk Ratio Report

The relative risk is calculated as follows:

1. Examine the first entry in the Relative Risk report, which is P(Married|Female)/P(Married|Male).

2. You can find these probabilities in the Contingency Table. Since the probabilities are computed based on two levels of sex, which differs across the rows of the table, use the Row% to read the probabilities:

P(Married|Female) = 0.6884

P(Married|Male) = 0.6121

Therefore, the relative risk is calculated as follows:

P(Married|Female)/P(Married|Male) = Equation shown here = 1.1247

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