BUPA: BUPA's liver disorders data

Description Usage Details Value Source Examples

Description

BUPA's liver disorders data: 345 male individuals' blood test result and liver disorder status.

Usage

1

Details

This data set consists of 345 observations and 6 predictors representing the blood test result liver disorder status of 345 patients. The three predictors are mean corpuscular volume (MCV), alkaline phosphotase (ALKPHOS), alamine aminotransferase (SGPT), aspartate aminotransferase (SGOT), gamma-glutamyl transpeptidase (GAMMAGT), and the number of alcoholic beverage drinks per day (DRINKS).

Value

A list with the following elements:

X

A numerical matrix for predictors: 345 rows and 6 columns; each row corresponds to a patient.

y

A numeric vector of length 305 representing the liver disorder status.

Source

The data set is available for download from UCI machine learning repository.

Examples

1
2
3
4
5
6
7
8
9
# load data set
data(BUPA)

# the number of samples predictors
dim(BUPA$X)

# the number of samples for each class
sum(BUPA$y == -1) 
sum(BUPA$y == 1)

Example output

[1] 345   6
[1] 145
[1] 200

kerndwd documentation built on Sept. 4, 2020, 1:08 a.m.