posterior_inc: Posterior function for the simple SEIR model with incidence...

Description Usage Arguments Value

View source: R/posteriors.R

Description

Given the time vector, ODE parameters and deconstructed matrix of incidence data, calculates the posterior probability for a given data set.

Usage

1
2
3
posterior_inc(ts, values, names, local, inc_startDays, inc_endDays, inc_locals,
  inc_buckets, inc_ZIKV, inc_NH, unique_locations, inc_valid_days = NULL,
  inc_valid_local = NULL, solver = "rlsoda")

Arguments

ts

time vector over which to solve the ODE model

values

model parameters

names

names of the model parameters

local

the vector of location names corresponding to the parameter table

inc_startDays

vector of all starting days for reporting buckets

inc_endDays

vector of all end days for reporting buckets

inc_buckets

vector of all reporting bucket sizes

inc_ZIKV

vector of reported ZIKV case

inc_NH

vector of all population sizes

unique_locations

vector of all unique locations to be tested

inc_valid_days

vector of all days included in the incidence data

inc_valid_local

vector of locals corresponding to the days in inc_valid_days

solver

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

inc_local

vector of all location names corresponding to the incidence table

Value

a single value for the posterior


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