expand_summary_inf_chain: Expands default MCMC saved inf_chain

View source: R/mcmc_help.R View source: R/helpers.R

expand_summary_inf_chainR Documentation

Expands default MCMC saved inf_chain

Description

The MCMC function saves sparse matrix summaries of the infection history chain to save space and run time. This function returns the expanded infection history chain, as in the original version of the code. Returned value is a data table with leftmost columns giving sample number and individual, with columns expanded to the right for each infection period.

Usage

expand_summary_inf_chain(inf_chain, j_vec = NULL)

expand_summary_inf_chain(inf_chain, j_vec = NULL)

Arguments

inf_chain

the data table with the saved sparse infection history matrix

j

optional vector of js to expand the infection history chain for

Value

the MCMC saved infection history expanded with infection times as columns

long format, full infection history matrix chain


seroanalytics/serosolver documentation built on March 21, 2024, 5:38 a.m.