These functions are to draw posterior samples using MCMC for SDS likelihood in subsection 4.2 and Algorithm 5.1 This function solves the ODE in Eq. (2.7) and step 3 in Algorithm 5.1
1 |
indata |
descrete time of an individual. This values are came from Sellke epidemic data |
Tmax |
cutoff time of epidemic |
dt |
time increment of ODE |
beta |
present values of beta at the present step at MCMC |
gamma |
present values of gamma at the present step at MCMC |
ic |
initial values of ODE set to c(1.0, rho, 0.0), rho set the present values of beta and gamma at the present step at MCMC |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.