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

View source: R/RcppExports.R

inf_mat_prior_cppR Documentation

Marginal prior probability (p(Z)) of a particular infection history matrix single prior Prior is independent contribution from each year

Description

Marginal prior probability (p(Z)) of a particular infection history matrix single prior Prior is independent contribution from each year

Usage

inf_mat_prior_cpp(infection_history, n_alive, shape1, shape2)

Arguments

infection_history

IntegerMatrix, the infection history matrix

n_alive

IntegerVector, vector giving the number of individuals alive in each time unit

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


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