GithubHelp home page GithubHelp logo

remark-ecb's Introduction

HANK Model using IndShockConsumer

remark-ecb's People

Contributors

amonninger avatar wdu9 avatar llorracc avatar mriduls avatar

Stargazers

David McCarthy avatar Alan Lujan avatar

Watchers

Alan Lujan avatar

Forkers

giardamacro

remark-ecb's Issues

reproduce script issues

hi there

very nice notebook! runs perfectly for me.

i was trying to you reproduce.sh but few things not clear, maybe fix to avoid early frustrations :-)

that file does not exist:

jupyter nbconvert --to python REMARK-starter-example.ipynb

requirements.txt

do you really need that package specification? just installed latest HARK but cannot install this package. HARK works.

➜  REMARK-ECB git:(master) python -m pip install --quiet -r requirements.txt
ERROR: Cannot install -r requirements.txt (line 4), -r requirements.txt (line 6), -r requirements.txt (line 8) and numpy==1.19.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

[notice] A new release of pip available: 22.3.1 -> 23.0
[notice] To update, run: pip install --upgrade pip
➜  REMARK-ECB git:(master) python
Python 3.8.9 (default, Sep 29 2021, 09:49:01) 
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import HARK
>>> from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType
>>> PF_params = {
...     "CRRA": 2.5,  # Relative risk aversion
...     "DiscFac": 0.96,  # Discount factor
...     "Rfree": 1.03,  # Risk free interest factor
...     "LivPrb": [0.98],  # Survival probability
...     "PermGroFac": [1.01],  # Income growth factor
...     "T_cycle": 1,
...     "cycles": 0,
...     "AgentCount": 10000,
... }
>>> PFexample = PerfForesightConsumerType(**PF_params)
>>> PFexample.solve()
>>> PFexample.solution[0].cFunc
<HARK.interpolation.LinearInterp object at 0x12afe8e50>
>>> 

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.