Learn R Programming

BSDA (version 1.01)

Kidsmoke: Smoking habits of boys and girls ages 12 to 18

Description

Data for Exercise 4.85

Usage

Kidsmoke

Arguments

Format

A data frame with 1000 observations on the following 2 variables.

gender

a numeric vector

smoke

a numeric vector

Examples

Run this code
# NOT RUN {
str(Kidsmoke)
attach(Kidsmoke)
table(gender,smoke)
addmargins(table(gender,smoke))
addmargins(table(gender,smoke)/1000)
detach(Kidsmoke)
# }

Run the code above in your browser using DataLab