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

Include population-level and individual-level controls in joint framework #70

Merged
merged 9 commits into from
Dec 14, 2023

Conversation

joshwlambert
Copy link
Member

This PR addresses #13 by implementing a joint framework to infer the effect of individual-level and population-level control measures on the probability that an outbreak will become an epidemic or go extinct. This changes the function signatures of probability_epidemic(), probability_extinct() and probability_contain(), to include the pop_control and ind_control arguments.

probability_contain() can now compute the probability of containment for multiple initial infections for both population-level control and individual-level control with the analytical calculation, and for population-level control only for the stochastic calculation. (The function argument default value for num_init_infect is now removed as a result).

Function documentation and tests for each of these functions is updated.

@joshwlambert joshwlambert added the enhancement New feature or request label Dec 14, 2023
@joshwlambert joshwlambert merged commit 6c9eccb into main Dec 14, 2023
8 checks passed
@joshwlambert joshwlambert deleted the control branch December 14, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant