Learn R Programming

AntMAN (version 1.1.0)

AM_extract: Extract values within a AM_mcmc_output object

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

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.

Value

a list of variables specified in targets.

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.