Susceptible Infected Removed model (SIR connected)
ModelSIRCONN(
name,
n,
prevalence,
contact_rate,
transmission_rate,
recovery_rate
)# S3 method for epiworld_sirconn
plot(x, main = get_name(x), ...)
The ModelSIRCONN
function returns a model of class epiworld_model.
The plot
function returns a plot of the SIRCONN model of class
epiworld_model.
String. Name of the virus
Number of individuals in the population.
Double. Initial proportion of individuals with the virus.
Numeric scalar. Average number of contacts per step.
Numeric scalar between 0 and 1. Probability of transmission.
Numeric scalar between 0 and 1. Probability of recovery.
Object of class SIRCONN.
Title of the plot
Currently ignore.
The initial_states function allows the user to set the initial state of the model. In particular, the user can specify how many of the non-infected agents have been removed at the beginning of the simulation.
epiworld-methods
Other Models:
ModelDiffNet()
,
ModelSEIR()
,
ModelSEIRCONN()
,
ModelSEIRD()
,
ModelSEIRDCONN()
,
ModelSEIRMixing()
,
ModelSIR()
,
ModelSIRD()
,
ModelSIRDCONN()
,
ModelSIRLogit()
,
ModelSIRMixing()
,
ModelSIS()
,
ModelSISD()
,
ModelSURV()
,
epiworld-data
model_sirconn <- ModelSIRCONN(
name = "COVID-19",
n = 10000,
prevalence = 0.01,
contact_rate = 5,
transmission_rate = 0.4,
recovery_rate = 0.95
)
# Running and printing
run(model_sirconn, ndays = 100, seed = 1912)
model_sirconn
plot(model_sirconn, main = "SIRCONN Model")
Run the code above in your browser using DataLab