Skip to content

Julia code for "No Credit, No Gain: Trade Liberalization Dynamics, Production Inputs, and Financial Development" [Under Construction]

License

Notifications You must be signed in to change notification settings

vjimenezg/KohnLeiboviciSzkup3.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kohn, Leibovici & Szkup (2021)

Build Status Coverage

This repository contains the complete code used to compute equilibrium steady-state and transition dynamics of the model in No Credit, No Gain: Trade Liberalization Dynamics, Production Inputs, and Financial Development, by David Kohn, Fernando Leibovici & Michal Szkup.

The Online Appendix contains all the derivations of the model.


Code directory

  • /src contains all the code used to compute the numerical results presented in the paper, given parameter values (calibration is currently only in MATLAB and available upon request). It comprises the following:
  1. /src/KohnLeiboviciSzkup3.jl is the main script

  2. /src/parameters_settings.jl contains the parametrization and settings (including a tauchen function that discretizes the productivity shocks process

  3. /src/functions.jl contains all the functions needed to compute the steady states (KLS3_measure, KLS3_staticproblem, KLS3_dynamicproblem, KLS3_simulate, KL3_GE_par!, KLS3_GE_par)

  4. /src/functions_trans.jl contains all the additional functions needed to compute the transition between two steady states (KLS3_measure_trans, KLS3_staticproblem_period2_altTiming, KLS3_dynamicproblem_trans_vec_t, KLS3_simulate_trans, KLS3_transition_vec2!, KLS3_transition_vec2)

  5. /src/graphs.jl contains the code to generate the graphs of the model's simulations in the paper (figure 3, 4 and 6)

  6. /src/welfare.jl contains all the code related to the welfare analysis (INCOMPLETE, missing the 3D graphs)


Installation and Use

  1. Follow the instructions to install Julia

  2. Download and Install Atom (you can also use another text editor that supports Julia, but Atom is recommended)

  3. In Atom, follow the instructions to install Juno (Optional: in a similar fashion, install the language-julia package).

  4. Open the Julia REPL through Atom and install the package. To do this, enter package mode with ] (note that this cannot be copy-pasted on OSX; you need to type it to enter the REPL mode) and run

    add https://github.com/vjimenezg/KohnLeiboviciSzkup3.jl.git

    4a. Optional, but strongly encouraged: To install the exact set of packages used here (as opposed to using existing compatible versions on your machine), first run the following in the REPL

    using KohnLeiboviciSzkup3 # will be slow the first time, due to precompilation
    cd(pkgdir(KohnLeiboviciSzkup3))

    Then, enter the package manager in the REPL (using ] as before) and type

    ] activate .; instantiate

About

Julia code for "No Credit, No Gain: Trade Liberalization Dynamics, Production Inputs, and Financial Development" [Under Construction]

Topics

Resources

License

Stars

Watchers

Forks

Languages