-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Time varying unemployment probability and income #1112
Conversation
Addresses #1015 |
Codecov Report
@@ Coverage Diff @@
## master #1112 +/- ##
==========================================
- Coverage 73.85% 73.83% -0.03%
==========================================
Files 69 69
Lines 10631 10636 +5
==========================================
+ Hits 7852 7853 +1
- Misses 2779 2783 +4
Continue to review full report at Codecov.
|
…umbing/income_process
@alanlujan91, can you review this because it's related to a couple of things you are doing. @Mv77, @alanlujan91, @sbenthall: We should have a generic mechanism for making any and all inputs of this kind |
Adding a variable name to a list called There are many open tickets that are about make a more unified and coherent approach to time-varying parameters. #95 #664 #890 #991 among others |
@llorracc I think that's correct. If we want a variable to be time-varying in some cases, even if it's in few cases and the main use case is time-fixed, the variable has to be added to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me!
A quick suggestion is that sometimes the types of parameters might be ints. I saw that you had to change this in some tests to make them floats. I assume this was for the type checks?
Something that can help with type checks is isinstance(x, (int, float))
to catch any scalar parameter.
Thank you @alanlujan91! Yes, you are right about the type issue. But I thought it might be a good opportunity to enforce probabilities being |
I don't see any harm in enforcing that the probabilities in this case are floats. I wonder how that subtlety can be best documented. I agree with @llorracc that the main issue we are bumping into is that there's something non-generic about how this (rather core) model is configured. I don't think addressing that architectural concern is within the scope of this PR. #1111 might be a good place to discuss it in more detail. |
Great, this is ready to merge then. Thank you all! |
This PR allows
CondIndShock
and its derivatives to use age-varying unemployment probabilities and unemployment incomes.This can be done passing lists as the arguments for
UnempPrb
andÌncUnemp
.