AM_extract: Extract values within a 'AM_mcmc_output' object

Description Usage Arguments Details Value

View source: R/AM_extract.R

Description

Given an AM_mcmc_output object, as well as the target variable names, AM_extract will return a list of the variables of interest.

Usage

1
AM_extract(object, targets, iterations = NULL, debug = FALSE)

Arguments

object

an AM_mcmc_output object.

targets

List of variables to extract (ie. K, M, mu).

iterations

Can specify particular iterations to extracts, NULL for all.

debug

Activate log to.

Details

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.

Value

a list of variables specified in targets.


AntMAN documentation built on July 23, 2021, 5:08 p.m.

Related to AM_extract in AntMAN...