There are 6 files in the codes. If you encode these 6 files, you can replicate the oucomes in our paper.
main.f90 is the main program of this code.
com_libs.f90 includes subroutines for grids, markov chains, and splines.
parameters.f90 includes parameters that are used to set up the range of grid, shocks, and model parameters.
autinc.f90 is a function for income under the autarkey circumstance.
utility.f90 is for the utility.
innerloop.f90 includes 4 subroutines to compute values, distributions and simulation results
Endgrid : subroutine to solve values
simulation : subroutine for simulations
distribution : subroutine to compute the distribution
bellmanerror : subroutine to compute Bellman errors
