Description Usage Arguments Value
View source: R/GillespieMCMC.R
This function generates posterior samples of beta, gamma, and rho using MCMC based on Examce likelihood in subsection 4.1 This code refers Eq. (2.1) in Choi and Rempala (2012)
1 | Gillespie.Likelihood.MCMC(indata, nrepeat, prior.a, prior.b)
|
indata |
input data set. SIR trajectory data set |
nrepeat |
number of iteration of MCMC |
prior.a |
hyper shape parameter of gamma prior for beta, gamma |
prior.b |
hyper rate parameter of gamma prior for beta, gamma |
returning posterior sample of beta and gamma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.