RWMSampler: (Multiplicative) Random-Walk Metropolis for Heterogeneous SIR...

Description Usage Details

View source: R/RWMEpidemics.R

Description

Full information on epidemic

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
RWMSampler(
  beta0,
  betaPrior = c(1, 0.001),
  gammaPrior = c(1, 0.001),
  N,
  eventTimes,
  kernel,
  lambda,
  V = 1,
  noIts,
  burnIn,
  thinFactor = 1,
  lagMax = NULL
)

Details

Heterogeneous Kernel set up

Infectious model is parameterised by a predefined kernel.

Removal process is independent of infectious process a posteriori

Hence no need to sample removal parameter, given we have chosen a suitable prior (i.e Exponential/Gamma)

Paired Infection-Removal times.

Initialise Calculate Infectious Process part of the likelihood (Removal Process will cancel out). Gamma Posterior Parameters Data Accept/Reject MCMC Plots


JMacDonaldPhD/Epidemics documentation built on Jan. 10, 2020, 2:48 a.m.