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

inf_mat_prior_group_cpp_vector(n_infections, n_alive, alphas, betas)

Arguments

n_infections

IntegerMatrix, the total number of infections in each time point/group

n_alive

IntegerMatrix, matrix giving the number of individuals alive in each time unit in each group

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