Learn R Programming

biostat3 (version 0.2.3)

diet: Diet data set

Description

Dataset on a cohort investigating the incidence of coronary heart disease (CHD)

Usage

data("diet")

Arguments

Format

A data frame with 337 observations on the following 15 variables.

id

a numeric vector individual identifier

chd

a numeric vector event indicator for CHD at study exit (1=Yes, 0=No)

y

a numeric vector number of years at risk

hieng

a factor with levels low for energy < 2750 or high for energy >= 2750

energy

a numeric vector total recorded energy intake (kCal/day/100)

job

a factor for occupation with levels for bus driver, bus conductor and bank work

month

a numeric vector month of the year (1-12)

height

a numeric vector height in cm

weight

a numeric vector weight in kg

doe

a Date for date of study entry

dox

a Date for date of study exit

dob

a Date for date of birth

yob

a numeric vector for continuous year of birth

yoe

a numeric vector for continuous year of entry

yox

a numeric vector for continuous year of exit

Examples

Run this code
data(diet)
## maybe str(diet) ; plot(diet) ...

Run the code above in your browser using DataLab