GithubHelp home page GithubHelp logo

camriddell / bayerluetticke Goto Github PK

View Code? Open in Web Editor NEW

This project forked from econ-ark/bayerluetticke

0.0 0.0 0.0 6.55 MB

Shell 0.01% Python 21.17% OpenEdge ABL 72.53% Jupyter Notebook 6.30%

bayerluetticke's Introduction

This folder contains code that solves models from the paper of Bayer and Luetikke, "Solving heterogeneous agent models in discrete time with many idiosyncratic states by perturbation methods" found at:

https://cepr.org/active/publications/discussion_papers/dp.php?dpno=13071#

The paper solves three models, represented here in three places:

A Krusell-Smith model with a single asset:

  • [OneAsset-KS]
    • in Assets/One execute SteadyStateOneAssetIOUs.py then FluctuationsOneAssetIOUs.py

A HANK model with a single asset: - [OneAsset-HANK] - in Assets/One execute SteadyStateOneAssetIOUsBond.py then FluctuationsOneAssetIOUs.py

A HANK model with a liquid and an illiquid asset, [TwoAsset-HANK] - [TwoAsset-HANK] - in Assets/Two execute SteadyStateTwoAsset.py then FluctuationsTwoAsset.py

Other content:

  1. BayerLuetticke_wrapper.py creates a wrapper to the one asset version of BayerLuettike's code.

    • This file:

      • Creates BayerLuettickeAgent and BayerLuettickeEconomy which are simple wrappers to BayerLuetikke's code, presently only the steady state part of this.
      • Simulates a BayerLuettickeEconomy with 10,000 agents in steady state
  2. ConsIndShockModel_extension.py extends ConsIndShockModel to calculate and store a histogram of the distribution of agents.

    • This is a starting point for an alternative method for creating the steady state required as an input for the BL method. (It's only a starting point because the remaining steps to format the output in the manner required by the BL code have not been taken).

bayerluetticke's People

Contributors

llorracc avatar camriddell avatar mriduls avatar alanlujan91 avatar sbenthall avatar

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.