Skip to content

add improvements #181

Description

@avallecam
## **Summary**: Intervention objects

In {epidemics} different interventions require different functions, arguments, and R class objects: **integers**, **matrices**, or **lists**.

| Intervention     | Function          | type         | reduction / nu                          | Argument in model_default()                              |
|-------------------|--------------------|--------------|--------------------------------------------|--------------------------------------------------------------|
| Reduce rate       | intervention()     | *"rate"*     | reduction = 0.163                          | intervention = list(*transmission_rate* = \<intervention>)   |
| Reduce contacts   | intervention()     | *"contacts"* | reduction = **matrix**(c(0.5, 0.01, 0.01)) | intervention = list(*contacts* = \<intervention>)             |
| Vaccination       | ***vaccination()*** | ------------ | nu = **matrix**(c(0.0006, 0.004, 0.02))    | ***vaccination*** = \<intervention>                           |

The **list()** class object helps accepting multiple **consecutive** or **overlapping** interventions in the same simulation.

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