plot_infection_history_chains_indiv: Plot MCMC trace for infections per individual

plot_infection_history_chains_indivR Documentation

Plot MCMC trace for infections per individual

Description

Plot MCMC trace for infections per individual

Usage

plot_infection_history_chains_indiv(
  inf_chain,
  burnin = 0,
  indivs = NULL,
  pad_chain = TRUE
)

Arguments

inf_chain

the data table with infection history samples from serosolver

burnin

optionally remove all samp_no < burnin from the chain

indivs

vector of integers, if not NULL, only plots a subset of individuals (where 1 is the first individual)

pad_chain

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

Value

a list of two ggplot objects - the MCMC trace and MCMC densities

See Also

plot_infection_history_chains_indiv

Other infection_history_plots: calculate_infection_history_statistics(), plot_antibody_data(), plot_antibody_predictions(), plot_cumulative_infection_histories(), plot_estimated_antibody_model(), plot_individual_number_infections(), plot_infection_history_chains_time(), plot_model_fits(), plot_posteriors_infhist(), plot_total_number_infections()

Examples

## Not run: 
data(example_inf_chain)
plot_infection_history_chains_indiv(example_inf_chain, 0, 1:10, FALSE)

## End(Not run)

seroanalytics/serosolver documentation built on Aug. 18, 2024, 12:46 p.m.