powered by
Data for Exercise 4.85
Kidsmoke
A data frame/tibble with 1000 observations on two variables
character vector with values female and male
female
male
a character vector with values no and yes
no
yes
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { T1 <- xtabs(~smoke + gender, data = Kidsmoke) T1 prop.table(T1) prop.table(T1, 1) prop.table(T1, 2) # }
Run the code above in your browser using DataLab