calcRandomProfiles: Calculate Incidence Disease Profiles

Description Usage Arguments Value Examples

View source: R/dice.R

Description

Given an array with the MCMC history of an uncoupled DICE run randomly choose sets of parameters and use them to create disease profiles. The code works on a level of single spatial region and supports both SIR and SEIR models.

Usage

1
2
calcRandomProfiles(sh = NULL, school = NULL, pop = NULL, tab = NULL,
  tps = NULL, nRnd = 100, cadence = 7, epi_model = 1)

Arguments

sh

Numeric array with averaged specific humidity for the region

school

Numeric array with the school vacation schedule for the region

pop

Numeric - the region's total population

tab

A numeric array with the MCMC history of all the parameters (both optimized and not)

tps

A numeric array of days for the flu season - the day numbers correspond to the week numbers

nRnd

Integer - the number of random profiles that will be calculated. (Default is 100)

cadence

Integer - the cadence of the disease data

epi_model

Integer 1 = SIR 2 = SEIR

Value

profile a 2D array with each row holding a single random disease incidence profile for the region

Examples

1
2
calcRandomProfiles{sh = mydata$model$sh, school = mydata$model$school,pop = mydata$model$pop, tab = tab,
tps = tps, nRnd = 100, cadence = 7}

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