%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

REPLICATION FILES FOR ANTRAS, DE GORTARI, ITSKHOKI (2017)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

I. DATA

We employ the public use samples of U.S. Federal Individual Income Tax returns available from the NBER website. We are not allowed to distribute the data but it can be obtained by following the instructions in http://users.nber.org/~taxsim/gdb/. The replication files can be run with any dataset of income data. 

- AGI_LN_approx.mat: We illustrate the code with the best lognormal approximation to the real data which is contained in. This database has a single variable, AGI_LN, in which each row contains the mu and sigma^2 parameters for the income distribution approximation of each year.

- PHI.mat: Contains the time series of phi, as shows in Figure 3.

- BLS_CPIURS.mat: CPI deflator from BLS.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 


II. REPLICATION FILES

%%% II.I Table1.m
Replicates table 1.

%%% II.II Table2.m
Replicates table 2.

%%% II.III Figure6.m
Replicates figure 6.

%%% II.IV Figure7.m
Replicates figure 7.

%%% II.V Figure8and9.m
Replicates figures 8 and 9.

%%% II.VI CODE_EQUILIBRIUM
- ability_varphi.m: Finds the calibrated varphi draws conditional on an income distribution and a set of parameters.
- ability_threshold.m: Finds the varphi_thresholds across number of export markets.
- ability_match.m: Solves for l and varphi for all n, conditional on an r that needs to be matched.
- k_and_Q_equilibrium.m: Find solution of model using fixed point algorithm, taking as primitives the parameters and the ability draws.
- Gini.m: Computes Gini coefficient of an income distribution.
- mod_statistics.m: Computes welfarist and costly redistribution modified statistics.







