Giter VIP home page Giter VIP logo

vjimenezg / kohnleiboviciszkup3.jl Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 461 KB

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

Home Page: https://drive.google.com/file/d/1B5bEuBKMDsWujJyqwKZ0anWoIrCZHltw/view

License: MIT License

Julia 100.00%
trade heterogeneous-agent-models macroeconomics international-economics

kohnleiboviciszkup3.jl's Introduction

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

kohnleiboviciszkup3.jl's People

Contributors

vjimenezg avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

davidkohn16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.