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

Are you calculating infections incorrectly? #6

Closed
ErwinM opened this issue Mar 26, 2020 · 1 comment
Closed

Are you calculating infections incorrectly? #6

ErwinM opened this issue Mar 26, 2020 · 1 comment

Comments

@ErwinM
Copy link

ErwinM commented Mar 26, 2020

Hi,

Your calculation for infections:
dI = a*E - gamma*I # where gamma = 1 / D_infectious
However, D_infectious is defined as the days someone is contagious. This seems unrelated to the number of people that recover from infection.

According to the wiki page for SEIR, gamma should represent the recovery rate:
gamma = 1 / days_to_recover

Am I understanding the code/wiki wrong?

Erwin

@ErwinM
Copy link
Author

ErwinM commented Mar 26, 2020

I misread:

You calculate R: REMOVED (not recovered), meaning no longer contributing to spread. And calculate recoveries separately. Gotcha.

@ErwinM ErwinM closed this as completed Mar 26, 2020
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

No branches or pull requests

1 participant