Susceptible-Infected-Susceptible model (SIS) (wiki)
Value
The
ModelSISfunction returns a model of class epiworld_model.
See also
epiworld-methods
Other Models:
ModelDiffNet(),
ModelMeaslesMixing(),
ModelMeaslesMixingRiskQuarantine(),
ModelMeaslesSchool(),
ModelSEIR(),
ModelSEIRCONN(),
ModelSEIRD(),
ModelSEIRDCONN(),
ModelSEIRMixing(),
ModelSEIRMixingQuarantine(),
ModelSIR(),
ModelSIRCONN(),
ModelSIRD(),
ModelSIRDCONN(),
ModelSIRLogit(),
ModelSIRMixing(),
ModelSISD(),
ModelSURV(),
epiworld-data
Examples
model_sis <- ModelSIS(name = "COVID-19", prevalence = 0.01,
transmission_rate = 0.9, recovery_rate = 0.1)
# Adding a small world population
agents_smallworld(
model_sis,
n = 1000,
k = 5,
d = FALSE,
p = .01
)
# Running and printing
run(model_sis, ndays = 100, seed = 1912)
#> _________________________________________________________________________
#> Running the model...
#> ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| done.
model_sis
#> ________________________________________________________________________________
#> Susceptible-Infected-Susceptible (SIS)
#> It features 1000 agents, 1 virus(es), and 0 tool(s).
#> The model has 2 states.
#> The final distribution is: 87 Susceptible, and 913 Infected.
# Plotting
plot(model_sis, main = "SIS Model")