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

NGM model demo #8

Closed
wants to merge 2 commits into from
Closed

NGM model demo #8

wants to merge 2 commits into from

Conversation

swo
Copy link
Contributor

@swo swo commented Nov 27, 2024

  • Showing how to get population-wide $R_0$ and infection distribution from eigenvalue functions in Python
  • Confirms that:
    • the next-generation matrix is the entity that one should use
    • the spectral radius is population-wide $R_0$
    • L1-normed eigenvectors are the stable infection distribution

Because this PR was only for demonstration of the math purposes, we don't actually need it in the codebase. This will be replaced by more careful documentation. cc @paigemiller

@swo swo changed the base branch from main to pm-draft-ngm-function November 27, 2024 17:08
@swo swo requested review from paigemiller and afmagee42 November 27, 2024 17:08
This was referenced Nov 27, 2024
@swo swo changed the base branch from pm-draft-ngm-function to main November 27, 2024 19:47
Copy link
Contributor

@paigemiller paigemiller left a comment

Choose a reason for hiding this comment

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

this looks good, but I would like to see a few more examples that cover the package more specifically and also show how to derive the high/low risk group example from the canonical textbook! I think we can merge this in if we don't have time to do this today, and can work on adding to the example next week

Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a few more examples to this demo:

  1. the functions in the package NGM, and how they relate to the current example
  2. the example from keeling and Rohani? with two groups
  3. how to use pop size inputs and vaccine doses

* convert demo to python

* Update scratch/demo.qmd

Co-authored-by: afmagee42 <[email protected]>

---------

Co-authored-by: afmagee42 <[email protected]>
@swo
Copy link
Contributor Author

swo commented Dec 2, 2024

Because this PR was only for demonstration of the math purposes, we don't actually need it in the codebase. This will be replaced by more careful documentation. cc @paigemiller

@swo swo closed this Dec 2, 2024
@swo swo deleted the swo_ngm_demo branch December 2, 2024 19:50
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