Damian Clarke, Sonia Oreffice, and Climent Quintana-Domeque, "The Demand for Season of Birth", Journal of Applied Econometrics, Vol. 34, No. 5, 2019, pp. 707-723. This zip file coq-files.zip contains replication material and data for tables, figures and calculations in this paper. All analysis scripts should be run in Stata and will replicate results for any version of Stata >= 11.0. However, all data are provided as csv files, and are imported to Stata by relevant scripts. This README documents usage of code and data. Please note that all data is identical to those used in the paper except the MTurk survey data. All identifying information has been removed from this dataset, and geographic locations have been modified with random noise to ensure that no individuals can be identified. The random noise added to the geographic data means that the replicated Appendix Figure A7a will differ from that in the paper. All other figures and tables will be unaltered. Four separate scripts are provided, replicating results using: (a) NVSS data (requires previous request from provider), (b) ACS data, and (c) MTurk data. These are respectively named "nvssPrep.do" and "nvssAnalysis.do", "acsAnalysis.do", and "mturkAnalysis.do" These scripts are located in the "source" subdirectory and export results to a subdirectory named NVSS, ACS or MTurk, each in the "results" directory. All data are stored in the "data" subdirectory in the same naming structure. There is additionally an "auxiliary" file containing a number of auxiliary data sets, such as mapping files. Results based on all US birth certificate data are generated from microdata files which require previous application. These are provided by the National Center for Health Statistics. Birth Data Files 2005-2013, as compiled from data provided by the 57 vital statistics jurisdictions through the Vital Statistics Cooperative Program. The details regarding data requests are available here: https://www.cdc.gov/nchs/nvss/dvs_data_release.htm The "All-counties identified" birth data files should be requested for years 2005- 2013. These data are free. To replicate all results based on these NVSS data, the nvssPrep.do script should be run to generate the main analysis file. To replicate all results, each of the scripts should be run. These can be run in Stata, after changing the MAIN global at the top of each script. This should be changed to indicate the location of these replication materials on your computer. For example, if the replication materials are located in a folder called "/home/replication", the line in each script defining the MAIN global should be set as: global MAIN "/home/replication/" No other changes are necessary. A number of external user-written ados are required, which can be installed from Stata's SSC. These are installed automatically if not available, provided that internet connectivity is available. If a required ado file is not installed and internet connectivity is not available, the script will fail to run until either the ado has been installed and the scripts are re-run, or internet connectiity is available and the script is re-run. Full log files will be exported to the "log" subdirectory. Tables are all exported as tex files, and figures are all exported as eps files. If you desire to replicate the precise format of these tables and figures as presented in the paper, you can compile the tex file in the main directory using the following command: pdflatex -shell-escape SOB-tables-replicate.tex The NVSS data file is quite large. These scripts have all been tested on a computer with 32GB of RAM. For a computer with a significantly smaller amount of RAM, the nvssAnalysis.do script may be quite slow to run. Main Tables and Figures in the paper correspond to the following scripts: > nvssAnalysis.do : Figure 1A, Figure 2, Figure 3, Table 1, Table 2 > acsAnalysis.do : Figure 1B, Table 3 > mturkAnalysis.do: Table 4 Additionally, all results documented in online Appendices are replicated in these three scripts. These can be found below (T refers to Table, F refers to Figure) > nvssAnalysis.do : TA1, TA2, TA3, TA4, TA5, TA6, TA7, FA1, FA2, FA3, TA8, TA9 FA4, FA5, TA10, TA11, TA12, TA13. > acsAnalysis.do : TA14, TA15, TA16, TA17. > mturkAnalysis.do: FA7, TA18, TA19, TA20, TA21, TA22. Figure A6 does not need to be replicated, as it is an experimental screen-shot. In each case, figures and tables are commented in the scripts. For queries regarding data generation or other replication details, contact Damian Clarke at damian.clarke [AT] usach.cl or damian.clarke [AT] protonmail.com.