Learn R Programming

BSDA (version 1.01)

Seatbelt: Injury level versus seatbelt usage

Description

Data for Exercise 8.24

Usage

Seatbelt

Arguments

Format

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

seatbelt

a factor with levels no yes

None

a numeric vector

Minimal

a numeric vector

Minor

a numeric vector

Major

a numeric vector

Examples

Run this code
# NOT RUN {
str(Seatbelt)
attach(Seatbelt)
Seatbelt
chisq.test(Seatbelt[,2:5])
detach(Seatbelt)
# }

Run the code above in your browser using DataLab