Marginal prior probability (p(Z)) of infection history matrix with groups Prior is independent contribution from each year and group

inf_mat_prior_group_cpp(n_infections, n_alive, alpha, beta)

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

alpha

double, alpha parameter for beta distribution prior

beta

double, beta parameter for beta distribution prior

Value

a single prior probability

See also