Giter Site home page Giter Site logo

rmhrl's Introduction

Repeated Moral Hazard and Recursive Lagrangeans

Matlab codes

Antonio Mele, April 2016 (First version: June 2008)

(Feel free to use these Matlab codes, with appropriate recognition of my work and citation of my paper. If you have any problem in running the codes, for questions, bugs reporting or suggestions, open an issue on GitHub or send me an email to [email protected])

This project solves four different models of repeated moral hazard. These models are described in the 2011 version of the paper.

The folder "Paper" includes two versions of the paper. The examples solved by the code are described in the 2011 version, section 4.2, while the published 2014 version only include the last example.

The folder "Figures" contains codes for solving the examples included in section 4.2 of the 2011 version of the paper. It also generates all pictures of the paper. These codes can be used to solve each model separately, and as a base for applying the same algorithm to new problems.

The folder "Tables" contains codes for creating the tables included in the section 4.3 to test accuracy and computational speed.

The folder "Libraries" contains a few routines used to solve the models.

IMPORTANT PRELIMINARY STEPS (more details in the README.txt files in each folder):

The folder "Libraries" must be added to your Matlab path. It includes two libraries:

  1. the most recent 64-bit version of the CompEcon Toolbox by Miranda and Fackler. If you are using a 32-bit machine, you may want to use another version. All version of CompEcon can be freely downloaded at http://www4.ncsu.edu/~pfackler/compecon/toolbox.html

  2. A library by Michael Reiter, which has a very efficient version of the Broyden algorithm (function broydn.m). IF YOU HAVE YOUR OWN VERSION OF THE BROYDEN ALGORITHM OR YOU WANT TO USE ANOTHER NONLINEAR EQUATION SOLVER, YOU MUST MODIFY ALL "main_INDIC.m" SCRIPTS (look for the function "broydn" in the MAIN LOOP).

This code comes with no guarantee. Use or modify it at your own risk.

rmhrl's People

Contributors

meleantonio avatar

Stargazers

Mark Song avatar Luca Rondina avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

rmhrl's Issues

Uploaded wrong files

It looks like the files uploaded are not the final version of the code. Needs to be updated with correct files.

Thanks to Bo Hu @bohuecon for spotting the problem.

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.