Git Product home page Git Product logo

macronometrics's Introduction

Macronometrics

A toolbox for macroeconometric modeling

Version 0.0.1

Key features

  • High-level language for model description (parser based on Lark)
  • backward looking modeling with AR / ECM processes
  • Dulmage - Mendelsohn block decomposition of the model
  • Symbolic computation of the jacobian
  • Several choices of numerical solvers (based on Scipy, or high-order Newton methods)
  • Time-series management based on Pandas

Usage

A macro model is defined by a set of static and dynamic equations, which determines the evolution of economic variables (such as GDP, interest rate, etc). The toolbox is able to simulate a trajectory (yearly or quarterly) of a model, based on a sample of time series (a training set). With this training set, the coefficients of the dynamic equations can be estimated, and the residuals of the model computed.

Getting started

  • Clone the repository
git clone https://github.com/InseeFrLab/Macronometrics.git 
  • Install the package
cd Macronometrics
python setup.py install
  • Clone the repository containing an illustrative model
cd ..
git clone https://github.com/InseeFrLab/Macronometrics-Notebook.git
  • Run the Jupyter notebook Colibri.ipynb

To do

  • Numba just-in-time compilation of the solving functions
  • Estimation of the coefficients of the model (OLS)

Acknowledgements

The code for Dulmage - Mendelsohn block decomposition is implemented with courtesy of Bank of Japan research team :

Hirakata, N., K. Kazutoshi, A. Kanafuji, Y. Kido, Y. Kishaba, T. Murakoshi, and T. Shinohara (2019) "The Quarterly Japanese Economic Model (Q-JEM): 2019 version" Bank of Japan Working Paper Series, No. 19-E-7.

Some features of the toolbox are inspired from the Grocer package for Scilab, and implemented with courtesy of Eric Dubois, lead developer of Grocer : http://grocer.toolbox.free.fr/

Credits

Institut National de la Statistique et des Etudes Economiques
Direction des Etudes et Synthèses Economiques
Département des Etudes Economiques
Division des Etudes Macroéconomiques

Alexandre Bourgeois - Benjamin Favetto (@BFavetto) - Adrien Lagouge - Matthieu Lequien (@MLequien) - Olivier Simon

Contributing

Contributing

Licence

CeCILL license

macronometrics's People

Contributors

bfavetto avatar olevitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

macronometrics's Issues

Proper docstring is required for better readibility

Use proper docstring everywhere in english as this package use complex logic, and it is hard to understand for an external user or for you in the future.

I use a lot of code definition inspector and good docstring helps a lot and it is for me more important than comments

e.g.

macro 1
macro 2

Add a develop branch

You should probably add a develop branchj if you want to open up the repo for external users

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.