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

[WIP] Arbitrary distributions of newborns' states #1121

Closed
wants to merge 2 commits into from

Conversation

Mv77
Copy link
Contributor

@Mv77 Mv77 commented Mar 1, 2022

It would be useful for us to let users specify whatever distribution they want for drawing the initial states of newborns.

For instance, I would like to draw the initial savings and permanent income levels of an IndShockConsumerType agent from some distribution calibrated to the SCF, not necessarily two independent lognormals as the current code requires.

This should be easy. Give me a Distribution object with the right dimensions and I will simply draw from it whenever agents are born. The issue, as usual is the current simulation tests (#1105).

This PR will contain my work towards the general-distribution-object purpose. I will try to find an elegant way not to break existing tests.

  • Tests for new functionality/models or Tests to reproduce the bug-fix in code.
  • Updated documentation of features that add new functionality.
  • Update CHANGELOG.md with major/minor changes.

@sbenthall
Copy link
Contributor

Hooray. Great idea. cf #620

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

Successfully merging this pull request may close these issues.

2 participants