heart: Heart Disease data set

heartR Documentation

Heart Disease data set

Description

A mixed variable dataset containing 14 variables of 297 patients for their heart disease diagnosis.

Usage

heart

Format

A data frame with 297 rows and 14 variables:

age

Age in years (numerical).

sex

Sex: 1 = male, 0 = female (logical).

cp

Four chest pain types: (1) typical angina, (2) atypical angina (3)non-anginal pain, (4) asymptomatic (categorical).

trestbps

Resting blood pressure (in mm Hg on admission to the hospital) (numerical).

chol

Serum cholestoral in mg/dl (numerical).

fbs

Fasting blood sugar more than 120 mg/dl (logical).

restecg

Resting electrocardiographic results: (0) normal, (1) having ST-T wave abnormality, (2) showing probable or definite left ventricular hypertrophy by Estes' criteria (categorical).

thalach

Maximum heart rate achieved (numerical).

exang

Exercise induced angina (logical).

oldpeak

ST depression induced by exercise relative to rest (numerical).

slope

The slope of the peak exercise ST segment: (1) upsloping, (2) flat, (3) downsloping (categorical).

ca

Number of major vessels (0-3) colored by flourosopy (numerical).

thal

(3) normal, (6) fixed defect, (7) reversable defect (categorical).

class

Diagonosis of heart disease (4 classes). It can be 2 classes by setting 0 for 0 values and 1 for non-0 values.

Source

The data set is taken from machine learning repository of UCI. The original data set consists of 303 patients with 6 NA's. Then, the missing values are omitted such that it reduces into 297 patients.

https://archive.ics.uci.edu/ml/datasets/Heart+Disease

References

Lichman, M. (2013). UCI machine learning repository.


kmed documentation built on Aug. 29, 2022, 9:06 a.m.