C++ (G++) code: prerequisites ------------- * cmake * make * g++ how to build ------------ * under the "source" directory create a subdirectory "build": cd source mkdir build * from withon the "build" directory call: cd build cmake .. make how to run ---------- * copy all the files from the "input" directory to the directory where readme.txt is: cp input/* . * from inside the "build" directory run the program: cd source/build ./dynamic_labor_run Each iteration will take about 30 minutes. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ STATA code for CPS data The STATA file CPS_analysis.do contains all the commands to generate the tables and figures. It requires the data file CPS_march_6514_couples_ipums.dta. To run the code in CPS_analysis.do, at the beginning of the code replace in cd "NAME_OF_DIRECTORY" NAME_OF_DIRECTORY with the name of the directory where you have saved the data file CPS_march_6514_couples_ipums.dta and want the output files to be saved in. The code will then generate the required output. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ STATA code for NLSY data The STATA file dataconstructioncomplete.do prepares the data for analysis. It requires the data files NLSY79_raw.dta; fertility_AFQT.dta; BMI.dta. It produces as output the data file NLSY7908.dta. The STATA file moments.do contains all the commands to generate the moments for the C++ code that are used to estimate the model. It requires the data file NLSY7908.dta. It also generates the data NLSY7908formoments.dta. The STATA file divorce_and_other_appendix_stats.do contains all the commands to generate the tables in the Appendix D for the divorce and selection analysis. It requires the data file NLSY7908.dta. To run the code in each of the do files, at the beginning of the code replace in cd "NAME_OF_DIRECTORY" NAME_OF_DIRECTORY with the name of the directory where you have saved the data files that are required and want the output files to be saved in. The code will then generate the required output.