sim_linelist: Simulate simple linelist data
Description
This function simulates a simple linelist data including dates of
epidemiological events and basic patient information. No underlying
epidemiological model is used.
Usage
sim_linelist(
n = 1,
onset_from = as.Date("2020-01-01"),
onset_span = 60,
report_delay = 7,
cfr = 0.1
)
Arguments
- n
Number of entries to simulate.
- onset_from
The earliest date of symptom onset which can be generated.
- onset_span
The time span over which to generate dates of onset.
- report_delay
The mean delay between onset and reporting, using a
Poisson distribution.
- cfr
The case fatality ratio, i.e. the proportion of patient dying from
the infection (used to generate the 'outcome' variable).