Description Usage Arguments Value Examples
View source: R/fit_user_data_fxns.R
build.mydata
Reads the user provided csv file with two columns: date and cases
The date format is: Year-month-day.
cases - integer number of cases
cadence can be anything including irregular
The code builds and populates the mydata DICE list
1 2 | build.mydata(filename = "data.csv", pop = 10000, epi_model = 1, Tg = 3,
sigma = NULL)
|
pop |
- Integer, population of the region for which incidence is provided |
epi_model |
- integer 1 (SIR) or 2 (SEIR), default is 1 |
Tg |
- Numeric, generation time in days. Default is 3 days |
sigma |
- inverse of of the latent period. Needed only for an SEIR model. Default 5 days |
filenmae |
String - input csv file name. Default 'data.csv' |
mydata - a DICE list
1 | mydata <- build.mydata(filename = "data.csv", pop = 1e5, epi_model = 2, Tg = 3., sigma = 5.)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.