-
-
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
[WIP] Transition matrices (general, life-cycle) #1286
Closed
Closed
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6c87cf5
Shock distribution maker
Mv77 23f46bd
Make args work
Mv77 a3a74a6
Create transition matrix method sketch
Mv77 0430b26
Construct transition matrix from conditional distribution
Mv77 a73f6dc
Support masking states
Mv77 b8e6fda
Shock engine for consportfolio
Mv77 9310d25
State grid for consportfolio
Mv77 88b71cd
Transition equation for ConsPortfolio
Mv77 ff42bdf
Test for frictionless and calvo agent
Mv77 c4c5064
Black
Mv77 11d7059
Add a life-cycle example
Mv77 bf705bb
Merge branch 'plumbing/labeled-dist-of-fun' into lc-transition
Mv77 eed2d01
Start working xrrays in
Mv77 c7a816f
Use xarray
Mv77 d3539d3
Create conditional policyfuncs
Mv77 0f1f453
Merge branch 'lc-transition-xarray' into lc-transition
Mv77 d3238a8
Compare with current methods in ConsIndShock
Mv77 6b502aa
Implement deaths (but results don't match)
Mv77 f155fe6
Fix treatment of newborns in infinite horizon models
Mv77 516f4a0
Add transition matrix class
Mv77 f2d73ad
Merge branch 'master' into lc-transition
Mv77 cb583c8
Add a bruteforce LC transition matrix
Mv77 4678d60
Proof of concept of simulating LC distributions
Mv77 d4e37de
Fix and test infinite horizon simulator
Mv77 fea5c2c
Add tool to find the steady state
Mv77 126e8c5
Use tool for evaluating outcomes of interest as functions
Mv77 10210f1
Compare with Will in more detail
Mv77 6aa5f34
Typo
Mv77 41f6ee2
Merge branch 'master' into lc-transition
Mv77 9555210
Implement pre- and post-multiplication by transition mats
Mv77 d96fe71
Fix pre-multiplication bug caught with 3x3 test
Mv77 497a7f2
Update distribution iterator
Mv77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just updated the methods to use
xarrays
and labeled distributions. They now take more expressive transition equations like these.