Kidsmoke | R Documentation |
Data for Exercise 4.85
Kidsmoke
A data frame/tibble with 1000 observations on two variables
character vector with values female
and male
a character vector with values no
and yes
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
T1 <- xtabs(~smoke + gender, data = Kidsmoke)
T1
prop.table(T1)
prop.table(T1, 1)
prop.table(T1, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.