Simulate simple linelist data
This function simulates a simple linelist data including dates of epidemiological events and basic patient information. No underlying epidemiological model is used.
sim_linelist( n = 1, onset_from = as.Date("2020-01-01"), onset_span = 60, report_delay = 7, cfr = 0.1 )
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).sim_linelist(10)
Thibaut Jombart thibautjombart@gmail.com