Skip to content

Call time variable in Macpan and seasonal-SIR(SIRS) model #327

@RichardSichengZhao

Description

@RichardSichengZhao

As mentioned previously, I am working on create a seasonal-SIR(SIRS) model with macpan and maybe add it to the model library later. The primary draft model can be found here in the folder.

Current idea is to generate a time-varying, periodical, cosine shaped $\beta(t)$ for each time step in the during phase, such that:

$$ \beta(t)=\beta_1+\frac{cos(2\pi \cdot t/period)+1}{2} \cdot (\beta_2-\beta_1) $$

A small issue I have for now is the time variable $t$. I am using $t \sim t+1$ for each time step in during phase which is not ideal.

It seems that time_step(0) should be the intrinsic way to have $t$ with no lag, am I right? If so, I suggest adding a stand alone topic with example and explanation into the documents and future workshops would be helpful for illustration. I could create an example in the seasonal-SIR model example when adding it to the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions