build.mydata: Read incidence data file and Build the DICE data list, mydata

Description Usage Arguments Value Examples

View source: R/fit_user_data_fxns.R

Description

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

Usage

1
2
build.mydata(filename = "data.csv", pop = 10000, epi_model = 1, Tg = 3,
  sigma = NULL)

Arguments

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'

Value

mydata - a DICE list

Examples

1
mydata <- build.mydata(filename = "data.csv", pop = 1e5, epi_model = 2, Tg = 3., sigma = 5.)

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.