SIR.ODE: SDS MCMC

Description Usage Arguments

View source: R/SdsMCMC.R

Description

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

Usage

1
SIR.ODE(indata = ti, Tmax = T.max, dt = 0.01, beta, gamma, ic)

Arguments

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


2019020826/SDSMCMC documentation built on March 2, 2020, 5:31 a.m.