Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncertainty-and-the-Saving-Rate heavily uses cstwMPC #119

Open
MridulS opened this issue Apr 23, 2020 · 7 comments
Open

Uncertainty-and-the-Saving-Rate heavily uses cstwMPC #119

MridulS opened this issue Apr 23, 2020 · 7 comments

Comments

@MridulS
Copy link
Member

MridulS commented Apr 23, 2020

Should we just pin this demark to work with 0.10.6 or try to make it work by import the REMARK?

@llorracc
Copy link
Collaborator

I'd like to try to make it work. I think it is one of the most useful of the DemARKs.

@sbenthall
Copy link
Contributor

See econ-ark/HARK#667

Part of making this work is:

  • Use the Lorenz curve functionality from HARK
  • use the SCF dataset from HARK

@sbenthall
Copy link
Contributor

Based on: econ-ark/HARK#669 (comment)

it sounds like another step to making this work is:

  • use the ConsAggShockModel and CobbDouglas economy, or other HARK base classes, instead of cstwMPC code

@sbenthall
Copy link
Contributor

I'm taking a crack at this. However, Mridul's assessment that this notebook "depends heavily" on the old cstwMPC code is right.

https://github.com/econ-ark/DemARK/blob/0.10.5/notebooks/Uncertainty-and-the-Saving-Rate.ipynb

The DemARK is not well documented enough for me to understand what is important to keep.
I am getting some contradictory signals....

In this comment, @mnwhite is saying that the modifications to the CobbDouglas economy are just what's needed for the cstwMPC results:
econ-ark/HARK#669 (comment)

In the DemARK, the market class modifications distributeParams, findLorenzDistanceAtTargetKY, and getKYratioDifference are being used to set parameters for plots and things.

I am not sure what's going on here, but from the looks of it Uncertainy-and-the-Savings-Rate replicates more of the original cstwMPC paper results than was originally supposed?

It looks like this DemARK was added 15 months ago by @llorracc . Perhaps it is a fork of some earlier cstwMPC code.

I wonder if it is possible to explain what is essential, and what is inessential, for this DemARK.

Another complication: this DemARK appears to depend on some control flow logic which is rather mysteriously in the cstwMPCSetupParams file. There was a lot more in that file than just the SCF datasets. I've been copying the relevant parameters into the notebook....

https://github.com/econ-ark/HARK/blob/0.10.5/HARK/cstwMPC/SetupParamsCSTW.py

But to be honest, I think the best thing to do would be for this DemARK to be rewritten by somebody who understood the importance of the content.

I'll push my WIP PR momentarily

@mnwhite
Copy link
Collaborator

mnwhite commented May 12, 2020 via email

@sbenthall
Copy link
Contributor

Ok, @mnwhite that makes sense.
@llorracc maybe we should work together on restoring this notebook.

@llorracc
Copy link
Collaborator

llorracc commented May 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants