rajeshrinet / pyross

PyRoss: inference, forecasts, and optimised control of epidemiological models in Python. github.com/rajeshrinet/pyross
https://pyross.readthedocs.io
MIT License
169 stars 57 forks source link

Supporting time-varying model parameters #36

Closed amir-ghasemi closed 3 years ago

amir-ghasemi commented 3 years ago

Hi,

Any plans or possibility to support time varying model parameters that depend on other external data? Is this best achieved by modifying the contact matrix during the simulation?

Thanks!

rajeshrinet commented 3 years ago

Hi @amir-ghasemi,

It is indeed best achieved by subsuming it in the contact matrix for the specific case of beta. See also this example which shows how an arbitrary time-dependence of parameters can be specified.