View source: R/getSyntheticData.R
| getSyntheticData | R Documentation |
Generate synthetic data
getSyntheticData(
StartDate = "2020-09-01",
EndDate = "2020-11-30",
lambda = 4,
peakData = c(21, 50, 28, 40, 42, 50),
amntDaysSickness = 20,
hospitalizationRates = list(rBed = 0.1347, rIntensiveBed = 0.004,
rIntensiveBedVentilation = 0.0171)
)
StartDate |
Start date. Default: |
EndDate |
Start date. Default: |
lambda |
Average number of daily infections. Default: 4 |
peakData |
Vector to define peak events. Odd entries represent days,
even entries the number of infections. Default: |
amntDaysSickness |
Length (in days) of the interval that is used to determine the number of infected individuals that have to go to the hospital. Based on this interval, the number of sick individuals is determined. The number of sick individuals is multiplied by the hospitalization rate to determine the number of bed. Default: 20 |
hospitalizationRates |
list of hospitalization rates, i.e., percentage
of sick individuals that need a |
data frame with the following entries: bed=bed, intensiveBed = intensiveBed, intensiveBedVentilation = intensiveBedVentilation, Day = Day, Infected=Infected, Sick = Sick)
bedint: COVID-19 beds
intensiveBedint: COVID-19 ICU beds
intensiveBedVentilationint COVID-19 ICU beds with ventilation
DayDate, format: '2020-05-01' '2020-05-02' '2020-05-03' '2020-05-04' ...
Infectedint: number of infected individuals (daily)
Sickint: number of sick individuals (daily)
dataSynth <- getSyntheticData()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.