sbenthall / SHARKFin

Simulating Heterogeneous Agents with Finance
7 stars 5 forks source link

Try taking out income with unemployment #249

Closed sbenthall closed 1 year ago

sbenthall commented 1 year ago

try setting probability of unemployment to 1, and unemployment income to 0.

sbenthall commented 1 year ago

This won't work.

Unemployment is factored in by 'add_discrete_outcome_constant_mean' which explicltly keeps the mean constant while factoring in the unemployment probability. Since that's impossible with a 100% unemployment probability, that leads to a math error at runtime.

https://github.com/econ-ark/HARK/blob/2209109593014795597aa7ed80b4e184abea2b0f/HARK/ConsumptionSaving/ConsIndShockModel.py#L3505-L3513