exposure: Transition to exposed (from susceptible) module

Description Usage Arguments Details

View source: R/SEIQHRFNetModules.R

Description

Models transition to the exposed state. Makes use of the FromXtoExposed function.

Usage

1
exposure(dat, at)

Arguments

dat

native Epimodel object

at

simulation timestep

Details

The final probability is calculated based on the contact rate (act.rate) and infection probability (inf.prob) using the following equation:

finalProb = 1 - (1 - inf.prob)^act.rate

Read more at the pages 65-66 of this book This corresponding to a Binomial trial with a p of success (transmission equal) to inf.prob and act.rate trials

Currently, the transition are processed sequentially. The transition in question are one-to-multiple state transitions] which should be modelled concurrently using transition matrices. The current implementation introduces bias as the probability of the transmission not being succesful is greater than it would be if this was to be processed concurrently. Read more here for further discussion or get in touch if you implement this


AIforGoodSimulator/network-model-R-package documentation built on Oct. 3, 2020, 10:08 a.m.