posterior_complex_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.

Usage

1
2
3
4
5
6
7
posterior_complex_buckets(ts, values, names, local, startDays, endDays, buckets,
  microCeph, births, data_locals, inc_startDays = NULL, inc_endDays = NULL,
  inc_locals = NULL, inc_buckets = NULL, inc_ZIKV = NULL, inc_NH = NULL,
  peak_startDays = NULL, peak_endDays = NULL, peak_locals = NULL,
  unique_locations, microceph_valid_days = NULL,
  microceph_valid_local = NULL, inc_valid_days = NULL,
  inc_valid_local = NULL, solver = "rlsoda")

Arguments

ts

time vector over which to solve the ODE model

values

ODE parameters

names

names for the ODE parameters

local

names of all the locations that are being considered in microcephaly data corresponding to parTab (ie. gets indices for each location from the parameter table)

startDays

vector of the start day for each bucket of microcephaly data

endDays

vector of the end day for each bucket of microcephaly data

buckets

bucket sizes for microcephaly sampling periods

microCeph

vector of microcephaly incidence for each bucket

births

vector of total briths for each bucket

data_locals

corresponding vector of location names for the microcephaly data

inc_startDays

start day vector for incidence data

inc_endDays

end day vector for incidence data

inc_locals

vector of location names for incidence data

inc_buckets

sampling window vector for incidence data

inc_ZIKV

vector of ZIKV incidence for each time point

inc_NH

vector of population size over time

peak_startDays

vector of initial allowable day of incidence peak time

peak_endDays

vector of end allowable day of incidence peak time

peak_locals

vector of corresponding location names

unique_locations

vector of all unique locations

microceph_valid_days

vector of all days included in the microcephaly data

microceph_valid_local

vector of locations corresponding to the days in microceph_valid_days

inc_valid_days

vector of all days included in the incidence data

inc_valid_local

vector of locations corresponding to the days in inc_valid_days

solver

specify which ODE solver to use, between "rlsoda" and "lsoda"

Value

a single value for the posterior


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