Worked exampleMedical and public health
How common was anaemia among heart-failure patients under 65 and those 65 or older?
Patients with anaemia recorded, by age band: Under 65: 80 of 184 (43.5%). 65 or older: 49 of 115 (42.6%). The share was 0.9 percentage points higher for Under 65.
The table
| Anaemia \ Age band | Under 65 | 65 or older | Total |
|---|---|---|---|
| Anaemia | 8043.5% | 4942.6% | 129 |
| No anaemia | 10456.5% | 6657.4% | 170 |
| Total | 184 | 115 | 299 |
Count / Column %. Each column total is the base for that column’s percentages.
Shaded cells are the two shares the answer compares.
Use this result
Reproduce it
Open these exact counts in the chi-square calculator. It loads the same table, with the same category order, and computes the percentages, χ² and Cramér’s V in your browser. Change a cell to see how the result moves.
Cite it
Copy this reference. The data credit and licence below travel with it.
How common was anaemia among heart-failure patients under 65 and those 65 or older? — Crosstabs. https://www.crosstabs.com/examples/mg11-anaemia-across-age-bands
Source
- Scope
- Patients with heart failure at two hospitals in Faisalabad, Pakistan.
- Period
- April–December 2015
- One record is
- one patient record
Data: Heart Failure Clinical Records (2020), UCI Machine Learning Repository.. Licensed under CC BY 4.0. Crosstabs selected, recoded and aggregated the records into this table.
Run it on your file
Open a CSV, Excel or SPSS file to build the same kind of table. The file is read in this browser tab: nothing is uploaded and no account is needed.
Run a crosstab on your own data
Why ask this
Before comparing outcomes across age groups, an analyst checks whether the groups started from a similar case mix. Anaemia is one baseline condition recorded for every patient.
How to read it
The age bands differ in size, 184 under 65 and 115 aged 65 or older, which is why the comparison uses column percentages rather than raw counts.
Column percentages answer “within each column, how often does each row occur?”. Switch to row percentages and the question turns around: “of the records in this row, how were they split across the columns?”. Both are correct; they answer different questions, so say which one you used.
What it means
Anaemia was recorded in almost the same share of both age bands. On this one condition the two groups look similar at baseline, which says nothing about other differences between them.
Cramér’s V = 0.009. It summarizes the whole table, all 2 × 2 categories, on a scale from 0 (no association) to 1. It does not say which cells differ, and it is not a measure of impact.
Comparing only Under 65 and 65 or older, and only Anaemia against every other row, Cramér’s V = 0.009. That number describes this one contrast, not the whole table.
Limits
A selected clinical cohort of heart-failure patients at two hospitals. The shares describe these patients only and do not estimate how common anaemia is among heart-failure patients elsewhere. This is not medical advice.