openintro (version 1.7.1)

census: Random sample of 2000 U.S. Census Data

Description

A random sample of 500 observations from the 2000 U.S. Census Data.

Usage

data(census)

Arguments

Format

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

censusYear

Census Year.

stateFIPScode

Name of state.

totalFamilyIncome

Total family income (in U.S. dollars).

age

Age.

sex

Sex with levels Female and Male.

raceGeneral

Race with levels American Indian or Alaska Native, Black, Chinese, Japanese, Other Asian or Pacific Islander, Two major races, White and Other.

maritalStatus

Marital status with levels Divorced, Married/spouse absent, Married/spouse present, Never married/single, Separated and Widowed.

totalPersonalIncome

Total personal income (in U.S. dollars).

Examples

Run this code
# NOT RUN {
data(census)
str(census)
these <- census[,3] > 0     # income greater than 0
histPlot(log(census$totalFamilyIncome[these]), xlab="log(total family income)")
# }

Run the code above in your browser using DataLab