Description Format Details Value Public fields Active bindings Methods Examples
R6 Class representing a set of Parameters
R6 Class representing a set of Parameters
R6Class
object.
Parameters contains all the parameters related to the epidemic
Object of R6Class
with all the parameters related to the population and the epidemic.
nage
number of age groups
preImmune
the proportion of immune individuals at the beginning of the epidemic
preExposed
the proportion of exposed individuals at the beginning of the epidemic
preInfected
the proportion of exposed individuals at the beginning of the epidemic
symptomatic
the proportion of symptomatic infection
progression
the rate of transfer from E to I
beta
the transmission probability upon contact with an infected (retro computed from R0)
contact
the contact matrix
agegroupnames
the name of the agegroups
susceptibility
A vector of size *nage* for susceptibility adjustment
R0
the basic reproduction number
removal
the rate of transfer from I to R
duration
the duration fo the simulation i.e. c("Week", "Month", "Trimester", "Semester", "Year").
nbDays
the number of days of the simulation
new()
Create a new 'Parameters' object.
Parameters$new(R0 = 2.2, contact = matrices$France)
R0
R0 (=3)
A new 'Parameters' object.
getList()
Create a new list containing the required parameters for the model
Parameters$getList()
A new list of parameters.
clone()
The objects of this class are cloneable with this method.
Parameters$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 | params = Parameters$new()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.