Git Product home page Git Product logo

log-transform-kernel-density's Introduction

The Evolution of the World Income Distribution: A Sensitivity Analysis

Note: This repository only contains the code used for the estimation, simulation and visualisation parts of the paper. The paper itself is available upon request.

This project analyses the performance of the log-transform kernel density estimator (Charpentier and Flachaire, 2015) in combination with different bandwidth selection methods when applied to both simulated and real world data. In particular, I apply the procedures to estimate the world income distribution which allows to investigate the development of income inequality between countries.

Building the Project

The project is written in Python and R. It is built using Waf. After a successful build, the full documentation of the project can be found in:

	project_documentation/index.html 

To run Waf and execute the files, you need to:

  1. Save the project on your computer (clone the repository or save the zip file).

  2. Install Miniconda or Anaconda in case they are not already installed and make sure that a LaTeX distribution can be found on your path.

  3. Make sure an R executable is added to your path. Under Mac OS X, this can be achieved by opening the bash profile in a shell and adding for example:

     # R directory
     export PATH="${PATH}:/Applications/R.app/Contents/MacOS"
    

    Details on how to open the bash profile in a shell and general instructions for adding programmes permanently to your path for Windows, Mac and Linux can be found here.

  4. Navigate to the project folder in a shell and execute the following commands to create a conda environment (named as the current directory) with a minimal Python setup.

    (Mac, Linux)

     source set-env.sh
    

    (Windows)

     set-env.bat
    

    Details for setting up a Python environment can be found here.

  5. Execute the following commands in the shell:

     python waf.py configure
     python waf.py build
     python waf.py install
    

    The execution of the first command will fail if any of the programmes required to run the project is not installed.

Note

In case you just want to quickly execute the whole project, apply the following changes to greatly reduce the runtime:

src/model_specs/draws.json (line 2): "configuration_0": 10

log-transform-kernel-density's People

Watchers

James Cloos avatar Nikolas Kuhlen 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.