acscodes_partitions: ACS codes for partitions

acscodes_partitionsR Documentation

ACS codes for partitions

Description

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.

Usage

acscodes_age_sex_race

acscodes_age_sex_educ

acscodes_sex_educ_race

Format

acscodes_age_sex_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).

acscodes_age_sex_educ

There are 70 codes in acscodes_age_sex_educ because they specify cells interacting age (5 bins), sex (2 bins), and education (7 bins).

acscodes_sex_educ_race

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.

See Also

acscodes_df for a definition of all codes, and the Vignette on ACS value pairs.

Examples

head(acscodes_age_sex_race)
head(acscodes_age_sex_educ)
head(acscodes_sex_educ_race)

kuriwaki/ccesMRPprep documentation built on July 27, 2023, 3:34 a.m.