smoking {SMPracticals}R Documentation

Survival and Smoking

Description

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

Usage

data(smoking)

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

Source

Appleton, D. R., French, J. M. and Vanderpump, M. P. J. (1996) Ignoring a covariate: An example of Simpson's paradox. The American Statistician, 50, 340–341.

References

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

Examples

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))

[Package SMPracticals version 1.4-3.1 Index]