GithubHelp home page GithubHelp logo

krusellsmith's Introduction

KrusellSmith

Binder

This is a Replication of Krusell and Smith, 1998.

To reproduces all the results of the paper, you can

Use nbreproduce (requires Docker to be installed on the machine).
# Clone this repository
$ git clone https://github.com/econ-ark/KrusellSmith

# Change working directory to KrusellSmith
$ cd KrusellSmith

# Install nbreproduce
$ pip install nbreproduce

# Reproduce all results using nbreproduce
$ nbreproduce
Install a local conda environment and execute the Jupyter notebook.
$ conda env create -f environment.yml
$ conda activate krusellsmith
# execute the script to create figures
$ cd Code/Python
$ ipython KrusellSmith.py

References

Krusell, P., & Smith, Jr, A. A. (1998). Income and wealth heterogeneity in the macroeconomy. Journal of political Economy, 106(5), 867-896.

krusellsmith's People

Contributors

alanlujan91 avatar camriddell avatar llorracc avatar mnwhite avatar mriduls avatar sbenthall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

krusellsmith's Issues

installation error

hi there

found this. any ideas? thanks

➜  KrusellSmith git:(master) ✗ ./reproduce.sh 
Requirement already satisfied: matplotlib==3.3.3 in /Users/74097/.pyenv/versions/3.6.1/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (3.3.3)
Collecting econ-ark==0.10.7
  Downloading econ-ark-0.10.7.tar.gz (224 kB)
     |████████████████████████████████| 224 kB 18.9 MB/s 
  WARNING: Generating metadata for package econ-ark produced metadata for project name unknown. Fix your #egg=econ-ark fragments.
ERROR: Requested unknown from https://files.pythonhosted.org/packages/73/35/3fc0d840b4f7ffdc380005c3849c07ed8c4025f9762c490c69f9e25848ef/econ-ark-0.10.7.tar.gz#sha256=2e528c003e0ae2c70661ed2f0d1288b4b87414e6ecae387b7e5ecbc9048746bb (from -r requirements.txt (line 3)) has different name in metadata: 'UNKNOWN'
WARNING: You are using pip version 20.3; however, version 21.0.1 is available.
You should consider upgrading via the '/Users/74097/.pyenv/versions/3.6.1/bin/python3 -m pip install --upgrade pip' command.
Using matplotlib backend: MacOSX
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
~/git/KrusellSmith/Code/Python/KrusellSmith.py in <module>
    178 
    179 from copy import deepcopy
--> 180 from HARK.utilities import plotFuncs, plotFuncsDer, make_figs
    181 from HARK.distribution import DiscreteDistribution
    182 

ModuleNotFoundError: No module named 'HARK'
➜  KrusellSmith git:(master) ✗ python
➜  KrusellSmith git:(master) ✗ ls
Code             KrusellSmith.bib reproduce.sh
Figures          README.md        requirements.txt
➜  KrusellSmith git:(master) ✗ cat requirements.txt 
matplotlib==3.3.3
numpy==1.18
econ-ark==0.10.7
➜  KrusellSmith git:(master) ✗ python --version
Python 3.6.1

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.