cle.sac: Cleveland and Sacramento

Description Usage Format Examples

Description

Data on a sample of 500 people from the Cleveland, OH and Sacramento, CA metro areas.

Usage

1
data("cle.sac")

Format

A data frame with 500 observations representing people on the following 8 variables.

year

Year the data was collected.

state

State where person resides.

city

City.

age

Age of the person.

sex

Gender.

race

Ethnicity.

marital_status

Marital status.

personal_income

Personal income.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(cle.sac)
d <- cle.sac[!is.na(cle_sac$personal_income),]
set.seed(8957)
is.sac <- d$city == "Sacramento_ CA"
is.cle <- d$city == "Cleveland_ OH"
sac <- sample(d$personal_income[is.sac], 17)
cle <- sample(d$personal_income[is.cle], 21)
par(mfrow = c(2, 1), las = 1)
histPlot(sac, breaks = 8)
histPlot(cle, breaks = 8)

JECheadle/RSOC317L documentation built on May 15, 2019, 4:02 a.m.