Learn R Programming

BSDA (version 1.01)

Inmate: Type of drug offense by race

Description

Data for Statistical Insight Chapter 8

Usage

Inmate

Arguments

Format

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

Race

a factor with levels black hispanic white

heroin

a numeric vector

crack

a numeric vector

cocaine

a numeric vector

marijuan

a numeric vector

Examples

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

Run the code above in your browser using DataLab