README
This folder contains all the codes to the paper “The Unequal Effects of COVID-19 Across Countries”, by Loris Rubini (2021).  

Most codes are in Matlab, except for the codes for Table 5 and Appendix B, which are in Stata.  

The main code “do_all.m” runs all the Matlab codes producing all the results in the paper.  It calls several codes that perform different exercises:
•	The folder decentralized contains the codes that produce the equilibrium outcomes for each country, absent any external policy.  
	SIR_macro_decentralized_US.m computes the equilibrium allocations for the US, and sir_macro_decentralized_non_US.m does it for all other countries.
•	The folder optimal imposes the optimal taxes to each country
•	The folder loan introduces the optimal loan in each country
•	The folder Counterfactuals decomposes different results into the effects of several differences across countries.
•	The folder figures and tables produces all the figures and tables in the paper.

*Note:-To calculate optimal, it may takes time which depends on computer specifications. (core i7 9th take us around 2 days with matlab 2019a)
      -If you only care about result, please do not excecute do_all at once because it will start to calculate optimal policy again which may take a lot of time.	
      -To generate figure and table, please the directory in the code to your specific folder	