AM_mcmc_output
objectGiven an AM_mcmc_output
object, as well as the target variable names,
AM_extract will return a list of the variables of interest.
AM_extract(object, targets, iterations = NULL, debug = FALSE)
an AM_mcmc_output
object.
List of variables to extract (ie. K, M, mu).
Can specify particular iterations to extracts, NULL for all.
Activate log to.
a list of variables specified in targets
.
Due to the complexity of AntMAN outputs, AM_mcmc_output
object can be difficult
to handle. The AM_extract function eases access of particular variables within the
AM_mcmc_output
object. Variables of varying dimension are expected to result from the transdimensional moves. When considering such
variables, the extracted list would correspond to an nx1 list, where n refers to the number of extracted iterations. Each of these nx1 entries consists
of another list of dimension mx1, where m specifies the number of components inferred for that iteration.