Giter VIP home page Giter VIP logo

hhandui's Introduction

This repository contains all files necessary to replicate the results in On Households and Unemployment Insurance by Sekyu Choi and Arnau Valladares-Esteban.

Implementation concept

The algorithm receives parameters from the outside world, solves the model, and returns moments of the simulated data as output.

Parameters

There are three types of parameters (mutually exclusive categories):

  • Numerical: Are not part of the mathematical representation of the model. Should not play any role in the economic implications of the solution of the model. Should only be relevant for speed and precision. Examples include: grid sizes, tolerance values, etc.
  • Assigned: Are part of the mathematical representation of the model. Are chosen outside of the calibration exercise.
  • Calibrated: Are determined by the calibration exercise in which the distance between the moments generated by the model and the moments observed in the data is minimized.

Mains steps to solve the model

  1. Compute decision rules using value function iteration.
  • Use Golden search method to find value of assets that solves the Bellman equations.
  1. Use decision rules to simulate life of a large number of agents and compute targeted moments.

Compilation instructions

These instructions consider GNU Fortran (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 on a double core machine with 15 GB of RAM memory. Execution time for the above is around 45 minutes to find equilibrium prices. The output of the code is stored in the folder where the executable is saved.

  1. Navigate to the folder where the .f90 files are located.
  2. Create an executable file with gfortran:
  • Normal: gfortran -g -fcheck=all -fbacktrace -Wall -mcmodel=large Globals.f90 Utils.f90 Initialisation.f90 VFiteration.f90 Households.f90 Simulation.f90 Main.f90 -o main.out.
  • Optimised: gfortran -mcmodel=large Globals.f90 Utils.f90 Initialisation.f90 VFiteration.f90 Households.f90 Simulation.f90 Main.f90 -O3 -o main.out
  1. Execute: ./main.

hhandui's People

Contributors

drarnau avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jovansam

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.