Description Usage Arguments Value
This function generates posterior samples of beta, gamma, and rho using MCMC based on Gaussian likelihood in subsection A.2
1 2 3 4 5 6 7 8 9 | Gaussian.MCMC(
data,
nrepeat,
ic = c(k1, k2, k3),
tun,
prior.a,
prior.b,
Tmax = 100
)
|
data |
input data set. SIR trajectory data set |
nrepeat |
number of iteration of MCMC |
ic |
initial value of beta, gamma, and rho |
tun |
tunning constant for proposal distribution of beta, gamma, rho |
prior.a |
hyper shape parameter of gamma prior for beta, gamma, rho |
prior.b |
hyper rate parameter of gamma prior for beta, gamma, rho |
Tmax |
cutoff time of epidemic |
returning posterior samples of beta, gamma, rho
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.