PUMS: Public Use Microdata Sample files (PUMS) 2013

Description Format Source Examples

Description

The ACS Public Use Microdata Sample files (PUMS) are a sample of the actual responses to the American Community Survey and include most population and housing characteristics.

Format

A data frame with 10000 observations on the following 4 variables.

wage

annual wages (binned to 1000s, top-coded, in US dollar)

race

a factor with levels Hispanic, Black, Asian, and White

education.int

level of education

education.cat

a factor variable with levels High School, and Degree

Source

These data are a random subset of 10000 observations from working individuals aged over 25 in the 2013 ACS Public Use Microdata Sample files (PUMS).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(PUMS)

PUMS$race.wec <- factor(PUMS$race)
contrasts(PUMS$race.wec) <- contr.wec(PUMS$race.wec, "White")
contrasts(PUMS$race.wec)

m.wec <- lm(wage ~ race.wec, data=PUMS)
summary(m.wec)

PUMS$race.educint <- wec.interact(PUMS$race.wec, PUMS$education.int)
m.wec.educ <- lm(wage ~ race.wec + education.int + race.educint, data=PUMS)
summary(m.wec.educ)

wec documentation built on May 1, 2019, 9:26 p.m.

Related to PUMS in wec...