All worked examplesWorked-example collection
World development and public health
Patients with heart failure at two hospitals in Faisalabad, Pakistan.
2 questions · 1 source dataset · 10 languages
Questions in this collection
Medical and public health
Patients with heart failure at two hospitals in Faisalabad, Pakistan.
- What share of heart-failure patients with and without diabetes had a recorded death?
2 × 2 table · N = 299
- How common was anaemia among heart-failure patients under 65 and those 65 or older?
2 × 2 table · N = 299
Methods for these tables
Every question opens in the calculator with its exact counts. These methods fit the tables in this collection:
- Chi-square test of independence · fits 2 questions
- Cramér’s V · fits 2 questions
- Odds ratio (two-by-two tables) · fits 2 questions
Teach or cite
A ready exercise: ask learners to choose the reading the first table supports, then compare the sibling question from the same dataset.
- Decision check
- What can this table say about diabetes and recorded deaths in this cohort?What share of heart-failure patients with and without diabetes had a recorded death?
- Cite this example
Heart Failure Clinical Records (2020), UCI Machine Learning Repository. Analysis: “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
How to cite Crosstabs
Sources and coverage
- 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.
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.