# Relative risk (/docs/analyses/relative-risk)



## When to use it [#when-to-use-it]

Use relative risk when you have a 2×2 table and you want a ratio of probabilities, not odds. The first alphabetical outcome level is the event. The first group level is the exposed group.

## Assumptions [#assumptions]

Both columns have exactly two levels. Relative risk is easiest to interpret when the rows are groups and the columns are the outcome of a cohort, not a case-control sample.

## Running it in Tensr [#running-it-in-tensr]

<Steps>
  <Step>
    Analyze → Descriptive Statistics → Relative Risk. In chat: “Relative risk of group by outcome.”
  </Step>

  <Step>
    Check alphabetical order before you read 

    `risk_exposed`

    .
  </Step>
</Steps>

## Options [#options]

<TypeTable
  type="{
  column_a: {
    type: 'string',
    description: 'Grouping variable. The first alphabetical level is exposed.',
  },
  column_b: {
    type: 'string',
    description: 'Outcome. The first alphabetical level is the event.',
  },
  decimal_places: {
    type: '0–6',
    description: 'Report output. Decimal places.',
    default: '3',
  },
  apa_format: {
    type: 'boolean',
    description: 'Report output. APA-style p-values.',
    default: 'true',
  },
  include_charts: {
    type: 'boolean',
    description: 'Report output. Shared chart switch.',
    default: 'true',
  },
}"
/>

## Reading the output [#reading-the-output]

The same weak 2×2, as a ratio of risks rather than odds.

| exposed | No | Yes |
| ------- | -: | --: |
| No      | 28 |  15 |
| Yes     | 23 |  24 |

Relative risk of `case` by `exposed`, n = 90. The primary result is not significant (p = .140). This is not large enough to treat the comparison this page is about as a reliable association. The result is non-significant: the data are still compatible with no effect. Metrics: Relative risk = 1.331; 95% CI = \[0.924, 1.917]; p-value = .140; Risk (exposed) = 0.651; Risk (unexposed) = 0.489.

## Reporting (APA 7) [#reporting-apa-7]

Relative risk of `case` by `exposed`, n = 90. This result is not significant (p = .140). Report the estimate with that p, and do not describe the pattern as a reliable effect.

## Coming from SPSS [#coming-from-spss]

Analyze → Descriptive Statistics → Relative Risk. Confirm which row SPSS calls exposed.
