Lookup tables and variable metadata

tibbles that obtain, link, collpase, and describe ACS and CCES values

race_key gender_key educ_key age5_key age10_key states_key

CCES-ACS variable key value pairs for recoding

cces_dv_ids

Identifiers for datasets in CCES Dataverse

acscodes_df

ACS code lookup table

acscodes_age_sex_race acscodes_age_sex_educ acscodes_sex_educ_race

ACS codes for partitions

cps_onewaytabs

CPS variable labels and counts

Reading Data

Functions that read in CCES and ACS data from an API

get_acs_cces()

Obtain a ACS tabulation from tidycensus

get_acs_cvap()

Obtain CVAP proportions by race

get_cces_dataverse()

Download a specific CCES dataset from dataverse, with some indexing

get_cces_question()

Get one column of outcome questions for each model

get_poststrat()

Formats a post-strat table from ACS and district-level data

Sample datasets

Samples of datasets one can get from the data loading functions

ccc_samp

Sample cumulative CCES data

cc18_samp

Sample 2018 Common Content

cc18_NY

Sample 2018 New York CCES

cd_info_2018 elec_NY

Congressional District level information

questions_samp

Question metadata (sample)

Data recoding and cleaning

Functions that standardize and clean variable names and formats

ccc_bin_age()

Discretize a vector of age integers into labelled variables

ccc_std_demographics()

Recode CCES variables so that they merge to ACS variables

std_acs_cdformat()

Format CD format from ACS

cces_join_slim()

Build CCES Data by Joining Component Pieces

yesno_to_binary()

Translate a Yes/No variable into 1/0

Data collapsing and reshaping

Wrangling cleaned data for apporpriate modeling

build_counts()

Collapse CCES data to be analyzed in binomial model

Synthetic joint distributions

Estimating poststratfication tables with partial data

synth_bmlogit()

Synthetic joint estimation with balancing constraint

synth_mlogit() synth_smoothfix()

Model synthetic joint distribution with multinomial logit

synth_prod()

Model synthetic joint distribution with simple product

collapse_table()

Reduce the dimensionality of the table