setup_infection_histories_prior: Generate random infection history matrix

View source: R/mcmc_help.R

setup_infection_histories_priorR Documentation

Generate random infection history matrix

Description

Creates a random infection history matrix by sampling from the infection history model under prior version 2

Usage

setup_infection_histories_prior(
  antibody_data,
  possible_exposure_times,
  infection_model_prior_shape1 = 1,
  infection_model_prior_shape2 = 1
)

Arguments

antibody_data

the data frame of antibody data. See example_antibody_data

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

Value

an n (number of individuals) by m (number of possible exposure times) matrix containing 1s and 0s, representing infections


adamkucharski/serosolver documentation built on April 28, 2024, 6:19 p.m.