npi_add_school_closure {epiworldRShiny}R Documentation

School closure intervention (non-pharmaceutical intervention)

Description

School closure intervention (non-pharmaceutical intervention)

Usage

npi_add_school_closure(model, preval, day, transmission_reduction)

Arguments

model

epiworldR model.

preval

Prevalence of school closure within the population.

day

Day in the simulation where school closure goes into effect.

transmission_reduction

Reduction in transmission probability due to school closure.

Value

Returns an object of class epiworld_model, where model is substituted with the model name.

See Also

Other interventions: interventions_add_all(), npi_add_masking(), pi_add_vaccine()

Examples

library(epiworldR) # for ModelSEIRCONN function
model <- ModelSEIRCONN("COVID-19", n = 1000, prevalence = 0.05,
                       contact_rate = 4, transmission_rate = 0.1,
                       incubation_days = 7, recovery_rate = 0.14)
run(model, ndays = 100, seed = 123)
npi_add_school_closure(model, preval = .8, transmission_reduction = .3, day = 10)

[Package epiworldRShiny version 0.1-0 Index]