compileTransProbs: Compile Transition Probabilities

View source: R/compileTransProbs.R

compileTransProbsR Documentation

Compile Transition Probabilities

Description

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

Usage

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

Kevin See

Examples

#compileTransProbs()

mackerman44/DABOM documentation built on April 3, 2024, 6:51 a.m.