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
| Tool | Epidemiology Tables |
| Source | original |
| Level | Undergraduate |
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
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
- Three strata with risk ratio 1.5 each and a crude risk ratio of 0.69: Mantel-Haenszel pooling step by step
- CDC's tuberculosis outbreak in a prison dormitory: risk ratio 6.1 and odds ratio 7.2 from one 2×2 table
- CDC's legionellosis outbreak and Grocery Store A: the odds ratio of a case-control table and its Cornfield interval
- Night shifts and injury in two age groups: risk ratios of 3.0 and 0.91 and the test of homogeneity
- Heavy lifting and back injury by age: rate ratios from cases and person-years, crude 1.68 and pooled 2.09