get_total_number_infections: Get total number of infections

View source: R/analysis.R

get_total_number_infectionsR Documentation

Get total number of infections

Description

Finds the total number of infections for each iteration of an MCMC chain

Usage

get_total_number_infections(inf_chain, pad_chain = TRUE)

Arguments

inf_chain

the data table with infection history samples from serosolver

pad_chain

if TRUE, pads the infection history MCMC chain to have entries for non-infection events

Value

a data table

Examples

## Not run: 
inf_chain <- load_infection_chains(thin=10,burnin=5000,chain_subset=1:3)
n_infs <- get_total_number_infections(inf_chain$chain, pad_chain=FALSE)

## End(Not run)

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