Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Kidsmoke

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 and male

smoke

a character vector with values no and yes

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)

BSDA

Basic Statistics and Data Analysis

v1.2.0
GPL (>= 2)
Authors
Alan T. Arnholt [aut, cre], Ben Evans [aut]
Initial release
2017-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.