draw_trajec: Sample a subject-level trajectory.

Description Usage Arguments Value

View source: R/draw_trajec.R

Description

Proceeds in four steps: 1) Sample disease status at observation times using the stochastic forward-backward algorithm. 2) Sample the infection status at transition times of other subjects. 3) Sample exact times of transition within inter-event intervals where needed. 4) Accept/Reject the proposed trajectory via Metropolis-Hastings.

Usage

1
draw_trajec(epimodel, subject, iter)

Arguments

iter

iteration number

Value

updated configuration matrix and observation matrix objects in the epimodel environment.


fintzij/BDAepimodel documentation built on Sept. 20, 2020, 1:44 p.m.