ModelSIS {epiworldR} | R Documentation |
SIS model
Description
Susceptible-Infected-Susceptible model (SIS) (wiki)
Usage
ModelSIS(name, prevalence, transmission_rate, recovery_rate)
## S3 method for class 'epiworld_sis'
plot(x, main = get_name(x), ...)
Arguments
name |
String. Name of the virus. |
prevalence |
Double. Initial proportion of individuals with the virus. |
transmission_rate |
Numeric scalar between 0 and 1. Virus's rate of infection. |
recovery_rate |
Numeric scalar between 0 and 1. Rate of recovery from virus. |
x |
Object of class SIS. |
main |
Title of the plot. |
... |
Currently ignore. |
Value
The
ModelSIS
function returns a model of class epiworld_model.
The
plot
function returns a plot of the SIS model of class epiworld_model.
See Also
epiworld-methods
Other Models:
ModelDiffNet()
,
ModelSEIR()
,
ModelSEIRCONN()
,
ModelSEIRD()
,
ModelSEIRDCONN()
,
ModelSIR()
,
ModelSIRCONN()
,
ModelSIRD()
,
ModelSIRDCONN()
,
ModelSIRLogit()
,
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)
model_sis
# Plotting
plot(model_sis, main = "SIS Model")
[Package epiworldR version 0.1-0 Index]