powered by
A cross-tabulation of whether a student smokes and how many of his or her parents smoke from a study conducted in the 1960's.
A data frame with 5375 observations on the following 2 variables.
Student a factor with levels DoesNotSmoke Smokes
DoesNotSmoke
Smokes
Parents a factor with levels NeitherSmokes OneSmokes BothSmoke
NeitherSmokes
OneSmokes
BothSmoke
The data also appear in
Brigitte Baldi and David S. Moore, The Practice of Statistics in the Life Sciences, Freeman, 2009.
# NOT RUN { data(familySmoking) xchisq.test( xtabs(~Parents + Student, familySmoking) ) # }
Run the code above in your browser using DataLab