generate_multiple_data: Simulation multi-state microcephaly and incidence data

Description Usage Arguments Value

View source: R/simulations.R

Description

Given all of the parameters needed to solve the SEIR model, produces a data frame of simulated microcephaly affected births for multiple states. Produces data for each unique state in the parTab argument.

Usage

1
2
3
generate_multiple_data(ts = seq(0, 3003, by = 1), parTab, weeks = FALSE,
  dataRangeMicro, dataRangeInc, noise = FALSE, peakTimeRange = NULL,
  solver = "rlsoda")

Arguments

parTab

Table of all parameters needed to solve the SEIR model and microcephaly simulation for each unique state. See setupParTable

weeks

Defaults to FALSE. If true. returns weekly microcephaly births rather than by month.

dataRangeMicro

a vector with lower and upper bounds on days for simulated microcephaly data

dataRangeInc

a vector with lower and upper bounds on days for simulated ZIKV incidence data

noise

bool indicating if noise should be added to the data

peakTimeRange

the allowable prior range for ZIKV incidence peak time

solver

which ODE solver to use, either "rlsoda" or "lsoda"

t_pars

vector of two components - the total run time in days and the time step for the ODE solver

Value

a data frame of microcephaly births, total births and corresponding times; a data frame of ZIKV incidence data; a data frame describing the ZIKV epidemic peak times for each location included in the simulation


jameshay218/zikaProj documentation built on Jan. 9, 2020, 7:26 p.m.