Worked exampleMedical and public health
What share of heart-failure patients with and without diabetes had a recorded death?
Patients with a death recorded during follow-up, by diabetes status: Diabetes: 40 of 125 (32.0%). No diabetes: 56 of 174 (32.2%). The share was 0.2 percentage points lower for Diabetes.
The table
| Follow-up outcome \ Diabetes | Diabetes | No diabetes | Total |
|---|---|---|---|
| Death recorded | 4032.0% | 5632.2% | 96 |
| No death recorded | 8568.0% | 11867.8% | 203 |
| Total | 125 | 174 | 299 |
Count / Column %. Each column total is the base for that column’s percentages.
Shaded cells are the two shares the answer compares.
Check the reading before you quote it
Pick the statement this table supports, then open each option to see what the counts say. Every figure here is computed from the table above.
What can this table say about diabetes and recorded deaths in this cohort?
In this cohort, the share with a recorded death was almost the same with and without diabetes.
Supported. 40 of 125 (32.0%) against 56 of 174 (32.2%), a gap of 0.2 percentage points. It describes the 299 released records from two hospitals, nothing beyond them.
Diabetes did not change these patients’ risk of death.
Not supported. Follow-up time varied between patients, and a record without a death may simply have been followed for less time. Equal crude shares do not show equal risk; comparing risk needs a survival analysis that uses follow-up time.
Each share is the group’s mortality at a fixed time.
Not supported. No fixed time point is used. Each share counts deaths recorded during whatever follow-up each patient had, so it is a crude event proportion.
The figures behind the check
- Diabetes: 40 of 125 with a death recorded (32.0%).
- No diabetes: 56 of 174 with a death recorded (32.2%).
- Whole cohort: 96 of 299 with a death recorded; follow-up length differs by patient.
What to carry forward
Quote this as a description of one historical cohort: crude shares, unequal follow-up, no adjustment. It is a methods example, not guidance on diagnosis or treatment.
Reproduce the exact tableOpens the calculator with this table’s counts, labels and category order, so each figure can be checked.
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.
What share of heart-failure patients with and without diabetes had a recorded death? — Crosstabs. https://www.crosstabs.com/examples/mg10-recorded-deaths-by-diabetes-status
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
Diabetes is one of the conditions recorded for every patient in this heart-failure cohort, and clinicians want to know whether it marks patients at higher risk. A crude death count is the first thing people look at, so it has to be read with its limits in view.
How to read it
Read down each column: 40 of 125 patients with diabetes and 56 of 174 without. A record without a death may simply have been followed for a shorter time.
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
The crude share with a recorded death was almost the same in both groups. Because follow-up time differed between patients, equal crude shares do not show equal risk; that needs a survival analysis.
Cramér’s V = 0.002. 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 Diabetes and No diabetes, and only Death recorded against every other row, Cramér’s V = 0.002. That number describes this one contrast, not the whole table.
Limits
A selected clinical cohort with follow-up durations that vary from patient to patient. A crude death-event proportion does not give mortality at a fixed time or the effect of any condition or treatment. This is not medical advice.