Marginal prior probability (p(Z)) of a particular infection history matrix vector prior Prior is independent contribution from each year, but each year has its own alpha and beta

inf_mat_prior_cpp_vector(infection_history, n_alive, alphas, betas)

Arguments

infection_history

IntegerMatrix, the infection history matrix

n_alive

IntegerVector, vector giving the number of individuals alive in each time unit

alphas

NumericVector, alpha parameters for beta distribution prior, one for each time unit

betas

NumericVector, beta parameters for beta distribution prior, one for each time unit

Value

a single prior probability

See also