Lookup tables and variable metadatatibbles that obtain, link, collpase, and describe ACS and CCES values 


CCESACS variable key value pairs for recoding 

Identifiers for datasets in CCES Dataverse 

ACS code lookup table 


ACS codes for partitions 
CPS variable labels and counts 

Reading DataFunctions that read in CCES and ACS data from an API 

Obtain a ACS tabulation from tidycensus 

Obtain CVAP proportions by race 

Download a specific CCES dataset from dataverse, with some indexing 

Get one column of outcome questions for each model 

Formats a poststrat table from ACS and districtlevel data 

Sample datasetsSamples of datasets one can get from the data loading functions 

Sample cumulative CCES data 

Sample 2018 Common Content 

Sample 2018 New York CCES 

Congressional District level information 

Question metadata (sample) 

Data recoding and cleaningFunctions that standardize and clean variable names and formats 

Discretize a vector of age integers into labelled variables 

Recode CCES variables so that they merge to ACS variables 

Format CD format from ACS 

Build CCES Data by Joining Component Pieces 

Translate a Yes/No variable into 1/0 

Data collapsing and reshapingWrangling cleaned data for apporpriate modeling 

Collapse CCES data to be analyzed in binomial model 

Synthetic joint distributionsEstimating poststratfication tables with partial data 

Synthetic joint estimation with balancing constraint 

Model synthetic joint distribution with multinomial logit 

Model synthetic joint distribution with simple product 

Reduce the dimensionality of the table 