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

Can the "Cooperative diseases" example type model be implemented considering complex contagion? #42

Open Kamol-Roy opened 5 years ago

joelmiller commented 5 years ago

Just to make sure I understand:

All you're asking for is an example of Gillespie_complex_contagion being used to do the cooperative disease case that is currently given as an example of Simple_complex_contagion ?

Kamol-Roy commented 5 years ago

Yes.

joelmiller commented 5 years ago

So the short answer is that yes, this is doable. The longer answer is that I'll try to add an example to the documentation soon, but I've got a lot on my plate (teaching is just wrapping up, grant application due soon, and travel coming up...).

If you look here: https://epidemicsonnetworks.readthedocs.io/en/latest/functions/EoN.Gillespie_complex_contagion.html#EoN.Gillespie_complex_contagion, there is an example showing how to do a standard SIR model with the complex contagion code. It is possible to adapt that to the cooperative diseases.