pad_inf_chain: Pad infection history chain

pad_inf_chainR Documentation

Pad infection history chain

Description

Given that the MCMC sampler only stores present infections (ie. there are no entries for 0s from the infection history matrix), for some summaries we need to add these 0s back in to avoid bias.

Usage

pad_inf_chain(inf_chain)

Arguments

inf_chain

the data table with infection history samples from run_MCMC

Value

the same inf_chain that was passed in, but with 0s for missing i/j/sampno combinations


seroanalytics/serosolver documentation built on July 19, 2023, 5:10 a.m.