Description Format Source Examples
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.
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
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
).
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.