acscodes_partitions | R Documentation |
Each vector defines a partition, or at least an attempt at one. Each element of
the vector is a code for a ACS variable, which can be used,
for example in the variables
argument of tidycensus::get_acs()
. Some of
these will be collapsed for MRP to form a common denominator with the CCES; see
namevalue.
acscodes_age_sex_race
acscodes_age_sex_educ
acscodes_sex_educ_race
There are 160 codes in acscodes_age_sex_race
because they specify cells
interacting age (10 bins, later coarsened to 5), sex (2 bins), and race/ethnicity (8 bins).
There are 70 codes in acscodes_age_sex_educ
because they specify cells
interacting age (5 bins), sex (2 bins), and education (7 bins).
There are 64 codes in acscodes_sex_educ_race
because they specify cells
interacting sex (2 bins), education (4 bins, later recoded to 3), and race (8 bins).
The entire partition is not actually exhaustive; it appears to only limit to 25 years and above.
Cross-check with acscodes_df to verify.
acscodes_df for a definition of all codes, and the Vignette on ACS value pairs.
head(acscodes_age_sex_race)
head(acscodes_age_sex_educ)
head(acscodes_sex_educ_race)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.