inf_mat_prior_group_cpp_vector: Marginal prior probability (p(Z)) of a particular infection...

View source: R/RcppExports.R

inf_mat_prior_group_cpp_vectorR Documentation

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 shape parameters

Description

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 shape parameters

Usage

inf_mat_prior_group_cpp_vector(n_infections, n_alive, shape1s, shape2s)

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

shape1s

NumericVector, shape1 (alpha) parameters for beta distribution prior, one for each time unit

shape2s

NumericVector, shape2 (beta) parameters for beta distribution prior, one for each time unit

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


seroanalytics/serosolver documentation built on Aug. 18, 2024, 12:46 p.m.