isolate_location: Isolate location from chain

Description Usage Arguments Value

View source: R/post_analyses.R

Description

Given the name of a location and its corresponding index, returns only those parameters relevant to that location from the MCMC chain

Usage

1
isolate_location(local, i, chains, parTab, extraNames = NULL)

Arguments

local

the name of the location

i

the index of the location used for indexing the right column (for example, first location in the table is 0, second is 1 etc...)

chains

the MCMC chain to extract from

parTab

the parameter table used to generate this MCMC chain. This is needed to ensure that parameter names are correct

extraNames

vector of additional names in the MCMC chain

Value

an MCMC chain for just this location, with R0 and attack rate calculated


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