simulate_transmission: Simulate transmission using contact network.

View source: R/simulation_base_functions.R

simulate_transmissionR Documentation

Simulate transmission using contact network.

Description

Simulate transmission using contact network.

Usage

simulate_transmission(
  NW_SIM = NA,
  input_location = "Networks/example.network.Rdata",
  PCR = F,
  RDT = F,
  len_sim = 100
)

Arguments

NW_SIM

A list of two object, which is the output of network_generate function.

input_location

A file location to read the NW_SIM object.

PCR

logical True means PCR test is deployed for the containment

RDT

logical True means rapid diagnostic tests are deployed for the containment

len_sim

numeric number of days to simulate for the outbreak, default 100.

Value

a dataframe contains the simulated results.

Examples

para <- init_para()
para$community.pop_sz <- 200
nw <- network_generate(para)
rslt <- simulate_transmission(PCR = FALSE, RDT = FALSE) # simulate a transmission without any containment

Xilin-Jiang/NetworkCOVID19 documentation built on April 2, 2022, 5:33 p.m.