Learn R Programming

vcdExtra (version 0.8-5)

Heart: Sex, Occupation and Heart Disease

Description

Classification of individuals by gender, occupational category and occurrence of heart disease

Usage

data(Heart)

Arguments

Format

A 3-dimensional array resulting from cross-tabulating 3 variables for 21522 observations. The variable names and their levels are:

NoNameLevels
1Disease"Disease", "None"
2Gender"Male", "Female"
3Occup"Unempl", "WhiteCol", "BlueCol"

Examples

Run this code
data(Heart)
str(Heart)

# Display the frequencies for occupational categories.
# Each row is a 2 x 2 table
vcd::structable(Disease + Gender ~ Occup, data=Heart)

# display as fourfold plots
vcd::cotabplot(~ Disease + Gender | Occup, data=Heart, panel = cotab_fourfold)

Run the code above in your browser using DataLab