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

Allow the user to prescribe mitigation date #418

Merged
merged 13 commits into from
Apr 2, 2020

Conversation

PhilMiller
Copy link
Collaborator

@PhilMiller PhilMiller commented Apr 1, 2020

This is on top of various cleanup and refactoring in #415, so probably review that first.

There's a potential edge case if distancing is strong enough to cause a dip in the census curve, that prescribed-doubling fitting of first-hospitalization might align to a point on either side of the dip.

I've tested this manually and it seems to behave as expected, but I don't have a great handle on how to really validate it.

Fixes #407

@PhilMiller PhilMiller changed the title 407 prescribe mitigation date #407 prescribe mitigation date Apr 1, 2020
@PhilMiller PhilMiller changed the title #407 prescribe mitigation date Allow the user to prescribe mitigation date Apr 1, 2020
@PhilMiller
Copy link
Collaborator Author

Documentation and input description wording probably need work. As implemented, without #340 taken into account, the date given needs to be when effects of distancing or other mitigation were/will be seen, not the date a policy was enacted.

@PhilMiller
Copy link
Collaborator Author

PhilMiller commented Apr 1, 2020

Playing with things more, I realize that the fit could potentially have three points where the given census crosses the curve in the allowed time before the forecast maximum
Screen Shot 2020-04-01 at 5 48 37 PM
Again, I believe this is only relevant if the user sets the doubling-time rather than the date of first hospitalization.

src/penn_chime/models.py Outdated Show resolved Hide resolved
@PhilMiller
Copy link
Collaborator Author

PhilMiller commented Apr 2, 2020 via email

Copy link
Collaborator

@jlubken jlubken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PhilMiller !

@jlubken jlubken merged commit 649307d into develop Apr 2, 2020
@jlubken jlubken deleted the 407-prescribe-mitigation-date branch April 2, 2020 18:27
@misken
Copy link

misken commented Apr 5, 2020

Is the new mitigation-date parameter going to make it into the CLI?

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.

["model"] social isolation started earlier than model assumes
3 participants