Replication package for Burton (2025) "The Impact of Smoking Bans in Bars on Alcohol Consumption and Smoking" JLE-10715.
The code in this replication package constructs all of the analysis in “The Impact of Smoking Bans in Bars on Alcohol Consumption and Smoking” (JLE-10715). Everything is executed in Stata, with big_do.do calling all other scripts in order to generate all results, tables, and figures in the paper. I've also included all publicly available data (minus BRFSS, which is too big to host on git--working on a solution).
I certify that I have legitimate access to and permission to use the data in the manuscript.
Some data cannot be made publicly available (NielsenIQ Consumer Panel data). Researchers may request access to the data from the Kilts Center for Marketing at the University of Chicago Booth School of Business: https://www.chicagobooth.edu/research/kilts/research-data/nielseniq
brfss_raw_yyyy.XPT are the raw SAS files for each BRFSS wave downloaded from the CDC’s BRFSS website
link: https://www.cdc.gov/brfss/annual_data/annual_data.htm
Not included. To request access to the data, see https://www.chicagobooth.edu/research/kilts/research-data/nielseniq
adult-operators-of-noncommercial-motor-vehicles_changes.xlsx is an Excel spreadsheet of alcohol policy changes over time, which is used for the BAC data
adult-operators-of-noncommercial-motor-vehicles_2021.xlsx is an Excel spreadsheet of alcohol policies in 2021, which is used for the BAC data
ansi_county_codes_2010.txt is a text file of U.S. county and state names and corresponding FIPS codes, which is used in the creation of the smoking bans data
link: https://www2.census.gov/geo/docs/reference/codes/files/national_county.txt
ansi_place-to-county_2010.txt is a text file of U.S. place names and place types linked to counties, which is used in the creation of the smoking bans data to match cities to counties
link: https://www2.census.gov/geo/docs/reference/codes/files/national_places.txt
census_incorporated_place_pop_est_2000_2009.csv is a CSV file of city population estimates for 2000-2009, which is used in the creation of the smoking bans data to generate the fraction of the county population subject to city-level smoking bans
link: https://www2.census.gov/programs-surveys/popest/datasets/2000-2009/cities/totals/sub-est2009-ip.csv
census_incorporated_place_pop_est_2010_2018.csv is a CSV file of city population estimates for 2010-2018, which is used in the creation of the smoking bans data to generate the fraction of the county population subject to city-level smoking bans
link: https://www.census.gov/data/tables/time-series/demo/popest/2010s-total-cities-and-towns.html
census_subcounty_pop_est_2000_2010.csv is a CSV file of subcounty population estimates for 2000-2010, which is used in the creation of the smoking bans data for population estimates for cities that span multiple counties
link: https://www2.census.gov/programs-surveys/popest/datasets/2000-2010/intercensal/cities/
census_subcounty_pop_est_2010_2018.csv is a CSV file of subcounty population estimates for 2010-2018, which is used in the creation of the smoking bans data for population estimates for cities that span multiple counties
link: https://www.census.gov/data/tables/time-series/demo/popest/2010s-total-cities-and-towns.html
co-est00int-tot.csv is a CSV file of county population estimates for 2000-2010, which is used in the creation of the smoking bans data to generate the fraction of the county population subject to smoking bans
link: https://www2.census.gov/programs-surveys/popest/datasets/2000-2010/intercensal/county/
co-est2017-alldata.csv is a CSV file of county population estimates for 2010-2017, which is used in the creation of the smoking bans data to generate the fraction of the county population subject to smoking bans
link: https://www2.census.gov/programs-surveys/popest/datasets/2010-2017/counties/asrh/
smoke_free_laws_2018_07_01.pdf is the PDF file of effective dates of smoking bans in bars and restaurants downloaded from the American Nonsmokers’ Rights Foundation (I use the July 1, 2018 version but it has been updated since then)
link: https://no-smoke.org/wp-content/uploads/pdf/EffectivePopulationList.pdf
smoke_free_laws_1jul2018_copied.xlsx is an Excel spreadsheet of effective dates of smoking bans that I copied over from the pdf file to import into Stata
state_fips_codes.xlsx is an Excel spreadsheet of state names, postal abbreviations, and FIPS codes used to help merge different datasets for the control variables
tbot_vot51_1970_2016.xlsx is an Excel spreadsheet of the Tax Burden on Tobacco (TBOT) data, which is used for the cigarette tax data
You will need to create several folders and directories and ensure the do-files and datasets are in the correct folders for the code to run.
Within your base directory, you need to create 1 folder: "ado"
Within analyze, you need to create 2 folders: "log", and "out"
Within build, you need to create 2 folders: "analysis_data" and "log"
Within build_data, you need to create 1 folder: "brfss"
Within brfss, you need to put 9 data files: all .XPT files beginning with “brfss”
big_do.do runs all the code
You will need to change anne_base (and nielsen_base, if you have the NielsenIQ data) to the correct directory (lines 12 and 13)
If you have access to all datasets, these are the only two lines of code you will need to change to get everything to run on your machine
FYI, this code takes 5-6 days to run start to finish with 4-core Stata/MP 17.0. It will run faster if you have more cores
Note: if you do not have access to the Nielsen data, you will need to comment out any line of code with Nielsen in it for the code to run
config.do creates filepaths and installs necessary packages
Note: if you do not have access to the Nielsen data, you will need to comment out the line that begins “global nielsen_base”
If you do not have access to the Nielsen data, once you make the above changes to big_do.do and config.do you will be able to run big_do.do from start to finish
build_brfss_individual_data.do imports and cleans the raw BRFSS data
build_smoking_bans.do imports the raw smoking bans and population data, cleans the data, and creates the treatment variable
build_controls.do imports and cleans the raw alcohol and tobacco policy data
build_nielsen_data.do imports and cleans the raw Nielsen data
analysis_sd_brfss.do merges the BRFSS data with the treatment and control variables and creates additional variables to make the final analysis dataset, and runs other do-files that generate summary statistics and most of the regression analysis
analysis_sd_brfss_sumstats.do creates the summary statistics tables for the BRFSS data and the map of smoking bans
analysis_sd_brfss_individual_twfe.do runs the main BRFSS regressions and creates most of the estimates for the main tables
analysis_sd_brfss_event_studies.do runs the BRFSS event studies
analysis_sd_brfss_heterogeneous_twfe.do runs the BRFSS robustness checks and creates estimates for the heterogeneous effects and robustness checks tables
analysis_sd_nielsen.do merges the Nielsen data with the treatment and control variables and creates additional variables to make the final analysis dataset, and runs other do-files that generate summary statistics and most of the regression analysis
analysis_sd_nielsen_sumstats.do creates the summary statistics table for the Nielsen data
analysis_sd_nielsen_house_twfe.do runs the main Nielsen regressions and creates most of the estimates for the main tables
analysis_sd_nielsen_household_robust.do runs the Nielsen robustness checks and creates estimates for the heterogeneous effects and robustness checks tables
analysis_sd_nielsen_event_studies.do runs the Nielsen event studies
analysis_sd_brfss_individual_newdid.do formats the BRFSS data for the stacked and DiD imputation estimators and runs the regressions/event studies for those alternative estimators
analysis_sd_nielsen_household_newdid.do formats the Nielsen data for the stacked and DiD imputation estimators and runs the regressions for those alternative estimators