econ-ark / DemARK

Demonstrations of how to use material in the Econ-ARK
https://econ-ark.github.io/DemARK/
Apache License 2.0
33 stars 93 forks source link

LifeCycleModel notebook question #121

Closed sbenthall closed 4 years ago

sbenthall commented 4 years ago

I'm trying to update the DemARKs to make them work with the most recent HARK release.

I'm confused by something in this notebook and I wonder if somebody could explain what's going on:

https://github.com/econ-ark/DemARK/blob/master/notebooks/LifeCycleModelTheoryVsData.ipynb

These are the tracked variables on LifecyclePop:

LifeCyclePop.track_vars = ['aNrmNow','pLvlNow','mNrmNow','cNrmNow','TranShkNow']

But in cell [9] there is the expression:

aGro41=LifeCyclePop.aLvlNow_hist[41]/LifeCyclePop.aLvlNow_hist[40]

How could that cell have been evaluated, if aLvlNow was not a tracked variable?

mnwhite commented 4 years ago

It was constructed 1 line above that, apparently.

On Mon, Jun 22, 2020 at 4:09 PM Sebastian Benthall notifications@github.com wrote:

I'm trying to update the DemARKs to make them work with the most recent HARK release.

I'm confused by something in this notebook and I wonder if somebody could explain what's going on:

https://github.com/econ-ark/DemARK/blob/master/notebooks/LifeCycleModelTheoryVsData.ipynb

These are the tracked variables on LifecyclePop:

LifeCyclePop.track_vars = ['aNrmNow','pLvlNow','mNrmNow','cNrmNow','TranShkNow']

But in cell [9] there is the expression:

aGro41=LifeCyclePop.aLvlNow_hist[41]/LifeCyclePop.aLvlNow_hist[40]

How could that cell have been evaluated, if aLvlNow was not a tracked variable?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/econ-ark/DemARK/issues/121, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKRAFI5EZ44DVBTQK2MQC3RX626TANCNFSM4OE74BJQ .

sbenthall commented 4 years ago

ah dumb question thank you.