identify_run_lengths: Identify runs of infections from posterior

identify_run_lengthsR Documentation

Identify runs of infections from posterior

Description

For each individual and MCMC iteration, uses the infection history MCMC chain and detects runs of consecutive infections.

Usage

identify_run_lengths(inf_chain)

Arguments

inf_chain

data table of the infection histories posterior

Value

a tibble giving the consecutive infection run length, the start and end time of each run, which index the run is (ie., which distinct infection), and the time from the end of the previous run, for each i and samp_no

Examples

## Not run: 
identify_run_lengths(inf_chain)

## End(Not run)

seroanalytics/serosolver documentation built on Dec. 14, 2024, 5:33 a.m.