Tools › Statistics › Health Statistics › Epidemiology Tables › Example

A 2×2 table with a zero cell: 9 of 15 ill against 0 of 11, with the 0.5 correction and the exact methods

ToolEpidemiology Tables
Sourceoriginal
LevelUndergraduate

Problem

At a dinner, 9 of the 15 guests who ate a dish fell ill and none of the 11 who did not eat it. The risk ratio would divide by zero. Give what can be computed from the table as entered, and the ratios after adding 0.5 to each cell.

Inputs to Enter

  • Kind of data: cohort study or trial, counts
  • One row (a, b, c, d): 9, 6, 0, 11; zero cells: add 0.5 to the cells for ratios
Open the Epidemiology Tables tool

Answers

  • Risks 60.0 % and 0.0 %; risk difference 60.0 percentage points (95 % interval 35.2 to 84.8), from the counts as entered
  • With 0.5 added: risk ratio (9.5 / 16) / (0.5 / 12) = 14.25 (0.917 to 221.5); odds ratio (9.5 × 11.5) / (6.5 × 0.5) = 33.62 (1.670 to 676.6)
  • Exact conditional interval of the odds ratio from the entered counts: 2.37 to no upper limit
  • Fisher's exact test p = 0.0024; chi-square 10.09 (smallest expected count 3.8)
  • Left as entered, the tool reports the risk ratio as not defined because no unexposed person has the outcome

Notes

Open this case in the tool: /analysis-tools/statistics/health/epidemiology-tables/?try=zero-cell. The counts are made up for illustration; every figure is checked against an independent scipy computation. Adding 0.5 is a convention that pulls a ratio toward 1; the corrected ratios are marked on the page.

More Examples for This Tool