inf_mat_prior_group_cpp: Marginal prior probability (p(Z)) of infection history matrix...

View source: R/RcppExports.R

inf_mat_prior_group_cppR Documentation

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

Description

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

Usage

inf_mat_prior_group_cpp(n_infections, n_alive, shape1, shape2)

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

shape1

double, shape1 (alpha) parameter for beta distribution prior

shape2

double, shape2 (beta) parameter for beta distribution prior

Value

a single prior probability

See Also

Other inf_mat_prior: inf_mat_prior_cpp_vector(), inf_mat_prior_cpp(), inf_mat_prior_group_cpp_vector(), inf_mat_prior_total_group_cpp()


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