posterior_simple_buckets: Posterior function for the simple SEIR model with bucketed...

Description Usage Arguments Value

View source: R/posteriors.R

Description

Given the time vector, initial conditions ODE parameters and a matrix of microcephaly data, calculates the posterior value for a given data set. Note that no priors are used here.

Usage

1
2
3
4
posterior_simple_buckets(ts, y0s, pars, startDays, endDays, buckets, microCeph,
  births, zikv = NULL, nh = NULL, inc_buckets = NULL, inc_start = NULL,
  inc_end = NULL, peak_start = NULL, peak_end = NULL,
  valid_days_micro = NULL, valid_days_inc = NULL, solver = "rlsoda")

Arguments

ts

time vector over which to solve the ODE model

y0s

initial conditions for the ODE model

pars

ODE parameters

startDays

vector of the start day for each bucket of data

endDays

vector of the end day for each bucket of data

buckets

bucket sizes

microCeph

vector of microcephaly incidence for each bucket

births

vector of total briths for each bucket

zikv

vector of ZIKV incidence

nh

vector of population sizes

inc_buckets

vector of bucket size for incidence data

inc_start

vector of inc start days

inc_end

vector of inc end days

peak_start

vector of peak time start days

peak_end

vector of peak time end days

valid_days_micro

a vector of days for which data were collected, allowing non-contiguous comparisons. Microcephaly

valid_days_inc

a vector of days for which data were collected, allowing non-contiguous comparisons. Incidence

solver

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

Value

a single value for the posterior


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