Learn R Programming

R330 (version 1.0)

chd.df: Coronary heart disease data

Description

Shows the age of the subject and presence or absence of evidence of significant coronary heart disease.

Usage

data(chd.df)

Arguments

Format

A data frame with 100 observations on the following 2 variables:
age
age of subject in years
chd
0 indicates CHD absent, 1 indicates it is present

Source

Hosmer, and Lemeshow Applied Logistic Regression, pp 2-5

References

Hosmer, D. W., and Lemeshow, S. (2000). Applied Logistic Regression, Second edition, Wiley, New York.

Examples

Run this code
data(chd.df)
chd.glm<-glm(chd~age,family=binomial,data=chd.df)
summary(chd.glm)

Run the code above in your browser using DataLab