| PUMS {wec} | R Documentation |
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.
Format
A data frame with 10000 observations on the following 4 variables.
wageannual wages (binned to 1000s, top-coded, in US dollar)
racea factor with levels
Hispanic,Black,Asian, andWhiteeducation.intlevel of education
education.cata factor variable with levels
High School, andDegree
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
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)
[Package wec version 0.4-1 Index]