Extracts the MCMC posteriors of transition probabilities for a DABOM model, and multiplies them appropriately.

compileTransProbs(
  trans_post = NULL,
  parent_child = NULL,
  time_vary_only = FALSE,
  time_vary_param_nm = "strata_num"
)

Arguments

trans_post

posterior draws of transition probabilities compiled by the `extractTransPost` function

parent_child

data frame with at least `parent` and `child` columns. Can be created with `buildParentChild()` function in the `PITcleanr` package.

time_vary_only

Should only time-varying parameters be compiled? Default is `FALSE`, meaning time-varying parameters are excluded from results. If set to `TRUE`, non-time-varying parameters are excluded from results.

time_vary_param_nm

column name describing the time-varying strata for each location. Default value is `strata_num`.

Author

Kevin See

Examples

#compileTransProbs()