Learn R Programming

wec (version 0.4-1)

PUMS: Public Use Microdata Sample files (PUMS) 2013

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.

Arguments

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

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab