setup_infection_histories_titre | R Documentation |
Very similar to setup_infection_histories
, but is not restricted to placing starting infections against viruses to which an individual has a titre. Given a matrix of titre data, proposes plausible initial infection histories from which to begin MCMC sampling.
The idea is to move along time in the context of antigenic drift and look at an individual's titre against each strain. Where titres are raised, we suggest an infection. However, to avoid suggesting multiple infections for regions of high antigenic similarity, we place a necessary gap (defined by 'space') between proposed infection times.
setup_infection_histories_titre(
titre_dat,
strain_isolation_times,
space = 5,
titre_cutoff = 2,
sample_prob = 0.9
)
titre_dat |
the matrix of titres data with columns for individual, sample, and titre |
strain_isolation_times |
vector of real times for all strains |
space |
how many epochs must separate proposed infections |
titre_cutoff |
specifies how high the titre must be to imply an infection |
sample_prob |
if titre suggests an infection, then add an infection with 1 minus this probability |
an nxm matrix of infection histories containing 1s and 0s, where n is the number of individuals and m is the number of potential infecting strains
Other setup_infection_histories:
setup_infection_histories_old()
,
setup_infection_histories_total()
,
setup_infection_histories()
data(example_titre_dat)
data(example_antigenic_map)
start_inf <- setup_infection_histories_titre(example_titre_dat, example_antigenic_map$inf_times)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.