Learn R Programming

SMPracticals (version 1.4-3.1)

smoking: Survival and Smoking

Description

Twenty-year survival and smoking status for 1314 women from Whickham, near Newcastle-upon-Tyne.

Usage

data(smoking)

Arguments

Format

A data frame with 14 observations on the following 4 variables.

age

Age group (factor)

smoker

Smoking status (1=smoker, 0=non-smoker)

alive

Number alive after 20 years

dead

Number dead after 20 years

References

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 258.

Examples

Run this code
data(smoking)
summary(glm(cbind(dead,alive)~smoker,data=smoking,binomial))
# note sign change for smoker covariate, due to Simpson's paradox
summary(glm(cbind(dead,alive)~age+smoker,data=smoking,binomial))

Run the code above in your browser using DataLab