Learn R Programming

UsingR (version 2.0-7)

female.inc: Income distribution for females in 2001

Description

A data set containing incomes for 1,000 females along with race information. The data is sampled from data provided by the United States Census Bureau.

Usage

data(female.inc)

Arguments

Format

A data frame with 1,000 observations on the following 2 variables.

income

Income for 2001 in dollars

race

a factor with levels black, hispanic or white

Details

The United States Census Bureau provides alot of data on income distributions. This data comes from the Current Population Survey (CPS) for the year 2001. The raw data appears in table format. This data is sampled from the data in that table.

Examples

Run this code
# NOT RUN {
data(female.inc)
boxplot(income ~ race, female.inc)
boxplot(log(income,10) ~ race, female.inc)
sapply(with(female.inc,split(income,race)),median)
# }

Run the code above in your browser using DataLab