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

NumericVector, shape1 (alpha) parameters for beta distribution prior, one entry for each unique group

shape2

NumericVector, shape2 (beta) parameters for beta distribution prior, one entry for each unique group

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()


seroanalytics/serosolver documentation built on Dec. 14, 2024, 5:33 a.m.