Full information on epidemic
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
)
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.