Kidsmoke {BSDA} | R Documentation |
Smoking habits of boys and girls ages 12 to 18
Description
Data for Exercise 4.85
Usage
Kidsmoke
Format
A data frame/tibble with 1000 observations on two variables
- gender
character vector with values
female
andmale
- smoke
a character vector with values
no
andyes
References
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
Examples
T1 <- xtabs(~smoke + gender, data = Kidsmoke)
T1
prop.table(T1)
prop.table(T1, 1)
prop.table(T1, 2)
[Package BSDA version 1.2.2 Index]