springer-math / Mathematics-of-Epidemics-on-Networks

Source code accompanying 'Mathematics of Epidemics on Networks' by Kiss, Miller, and Simon http://www.springer.com/us/book/9783319508047 . Documentation for the software package is at https://epidemicsonnetworks.readthedocs.io/en/latest/
MIT License
151 stars 61 forks source link

estimate_R0 #78

Open jsheen opened 3 years ago

jsheen commented 3 years ago

Hi Joel,

I think there's a small typo in the estimate_R0 method. In the second line of the estimate_R0 method in the source code, there is:

if tau is None or beta is None:

but I think this is meant to be:

if tau is None or gamma is None:

I was also wondering whether this method is equivalent to calculating the R0 of a network that will have an SEIR epidemic. Since the only addition is the 'E' class, I thought this wouldn't affect the R0 estimation since it doesn't affect the transmissibility, but was curious if you had any thoughts on this.

All the best, Justin

joelmiller commented 3 years ago

Agreed on the typo.

& yes, the standard SEIR model will have the same R0 as the corresponding SIR model.

joelmiller commented 3 years ago

@jsheen - if you have a chance to do a pull request on this, please go ahead. I'm just a bit too busy to fix things right now.

jsheen commented 3 years ago

just created one!

and thank you for the comments!