setup_infection_histories_total: Initial infection history prior on total

View source: R/mcmc_help.R

setup_infection_histories_totalR Documentation

Initial infection history prior on total

Description

Sets up an initial random infection history, where start is sampled from a prior on the total number of infections across all individuals and years

Usage

setup_infection_histories_total(
  titre_dat,
  strain_isolation_times,
  alpha = 1,
  beta = 1
)

Arguments

titre_dat

the matrix of titres data with columns for individual, sample, and titre

strain_isolation_times

vector of real times for all strains

alpha

alpha parameter for beta distribution to sample from

beta

beta parameter for beta distribution to sample from

Value

an infection history matrix

See Also

Other setup_infection_histories: setup_infection_histories_old(), setup_infection_histories_titre(), setup_infection_histories()

Examples

data(example_titre_dat)
data(example_antigenic_map)
start_inf <- setup_infection_histories_total(example_titre_dat, example_antigenic_map$inf_times, 2,10)

seroanalytics/serosolver documentation built on April 24, 2023, 9:52 a.m.