View source: R/mcmc_help.R View source: R/helpers.R
expand_summary_inf_chain | R Documentation |
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)
inf_chain |
the data table with the saved sparse infection history matrix |
j |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.