setup_infection_histories_prior | R Documentation |
Creates a random infection history matrix by sampling from the infection history model under prior version 2
setup_infection_histories_prior(
antibody_data,
possible_exposure_times,
infection_model_prior_shape1 = 1,
infection_model_prior_shape2 = 1
)
antibody_data |
the data frame of antibody data. See |
possible_exposure_times |
the vector of times that individuals can be infected |
infection_model_prior_shape1 |
shape parameter 1 (alpha) of the Beta distribution |
infection_model_prior_shape2 |
shape parameter 2 (beta) of the Beta distribution |
an n (number of individuals) by m (number of possible exposure times) matrix containing 1s and 0s, representing infections
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.