/Lee_Tobacco_Replication

Code replicating an article by Lee, Landrine, Torres and Gregory: https://www.ncbi.nlm.nih.gov/pubmed/27609780

Primary LanguageR

Lee_Tobacco_Replication (with Chris Zhang)

Code replicating an article by Lee, Landrine, Torres and Gregory: https://www.ncbi.nlm.nih.gov/pubmed/27609780

Data

  1. The TIMS violation data is retrieved from the FDA website.

  2. The 2010-2014 ACS 5-year estimate data at the census tract level is retrieved from Social Explorer at this link.

  3. The 2010-2014 ACS 5-year estimate data at the block level is also retrieved from Social Explorer at this link.

  4. The 2011-2015 ACS 5-year estimate data at the census tract level is also retrieved from Social Explorer at this link.

  5. The 2011-2015 ACS 5-year estimate data at the block level is also retrieved from Social Explorer at this link.

  6. The zipcode to census tract mapping data is available from the Census Bureau.

Programs

  • 1.tidy_fda.R cleans the FDA data and saves a csv file to the data folder.
  • 1a.tidy_fda.py does the same in Python.
  • 2.tidy_acs.R cleans the ACS data and saves a csv file to the data folder.