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


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.


expand_summary_inf_chain(inf_chain, j_vec = NULL)

expand_summary_inf_chain(inf_chain, j_vec = NULL)



the data table with the saved sparse infection history matrix


optional vector of js to expand the infection history chain for


the MCMC saved infection history expanded with infection times as columns

long format, full infection history matrix chain

seroanalytics/serosolver documentation built on July 11, 2024, 4:41 p.m.