heartfailure: Heart failure data

heartfailureR Documentation

Heart failure data

Description

A binary classification dataset on heart failure mortality using demographic, laboratory, and clinical covariates.

Usage

heartfailure

Format

A data frame with 299 rows and 13 variables:

age

Age in years.

anaemia

Anaemia indicator.

creatinine_phosphokinase

Creatinine phosphokinase level.

diabetes

Diabetes indicator.

ejection_fraction

Ejection fraction percentage.

high_blood_pressure

High blood pressure indicator.

platelets

Platelet count.

serum_creatinine

Serum creatinine level.

serum_sodium

Serum sodium level.

sex

Sex indicator.

smoking

Smoking indicator.

time

Follow-up time.

death_event

Death event outcome indicator (0 = no event, 1 = death).

Details

Column names were standardized to snake_case when packaging the data.

Source

CardioDataSets package dataset CardioDataSets::cardiac_failure_df.

Examples

str(funcml::heartfailure)
table(funcml::heartfailure$death_event)

funcml documentation built on Aug. 22, 2026, 5:08 p.m.