Replication codes for "Uneven growth: Automation's Impact on Income and Wealth Inequality," by Moll, Rachel, Restrepo.

The replication file contains four subfolders:

1. model_calibration: 

	-includes the data required to calibrate the model

	-the dofile "obtain alpha schedule and calibration" is the main file producing the calibrated parameters for our model, which are saved to the csv file "data_calibration_matlab_pi30."

	-the dofile "aggregate census data by percentile" uses Census data from IPUMS to generate wages and exposure to routine jobs by wage percentile (OMEGA_YYYY and WAGEDIST_YYY). Due to its size, these data are not shared in the replication package.
	Users might email pascual@bu.edu for information on how to download the raw data from IPUMS.  

2. numerical_analysis: 

	-the matlab file numerical_exercise_v09 reproduces our numerical exercise using the calibration parameters saved in "data_calibration_matlab_pi30," as well as additional parameters declared within that file. The file gives the user the option to run the model using the high and low risk aversion calibrations using the option "binding=0/1". 

	-the computation of the transitional dynamics uses the relaxation algorithm from
	Trimborn, T., K.-J. Koch, and T. M. Steger (2008): “Multi-Dimensional Transitional Dynamics: A Simple Numerical Procedure,” Macroeconomic Dynamics, 12(3), 1–19.

	-the code also gives the user the option to compute the transitional dynamics under the assumption that dissipation shocks destroy capital. This can be achieved by setting the model option to 1 in line 29 of transition_v09.

3. measuring_returns: 

	-contains the data and code required to generate Figures 5 and 6 in the main text, as well as the additional figures in Appendix G.  

4. additional_evidence

	-psz_irs_data: contains the data and code needed to produce Figure 12 as well as the additional figures in Appendix H

	-the remaining folders contain code and data to produce the figures in Appendix I


Final note: 
	we use "export_fig" to process the figures. This script can be obtained at:
	https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig

This version: 2/11/2021
Ben Moll 			B.Moll@lse.ac.uk
Lukasz Rachel 		Lukasz.Rachel@bankofengland.co.uk
Pascual Restrepo 	pascual@bu.edu 
