Marginal prior probability (p(Z)) of a particular infection history matrix total prior Prior here is on the total number of infections across all individuals and times

inf_mat_prior_total_group_cpp(n_infections_group, n_alive_group, alpha, beta)

Arguments

n_infections_group

IntegerVector, the total number of infections in each group

n_alive_group

IntegerVector, vector giving total number of potential infection events per group

alpha

double, alpha parameter for beta distribution prior

beta

double, beta parameter for beta distribution prior

Value

a single prior probability

See also