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

View source: R/RcppExports.R

inf_mat_prior_total_group_cppR Documentation

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

Description

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

Usage

inf_mat_prior_total_group_cpp(
  n_infections_group,
  n_alive_group,
  shape1,
  shape2
)

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

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


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