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)
bed
int: COVID-19 beds
intensiveBed
int: COVID-19 ICU beds
intensiveBedVentilation
int COVID-19 ICU beds with ventilation
Day
Date, format: '2020-05-01' '2020-05-02' '2020-05-03' '2020-05-04' ...
Infected
int: number of infected individuals (daily)
Sick
int: 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.