mcmcdb_samples_chain_parameters-methods: Extract MCMC Samples (Chains, Paramter arrays)

Description Arguments Value See Also Examples

Description

Extract MCMC samples as a list of chains, Each chain is a named list of parameter arrays.

Arguments

object

An object containing the MCMC samples.

parameters

character. Parameter arrays to include.

chain_id

integer. Chains to include. If NULL, all chains.

iter

integer. Iterations to include. If NULL, all iterations.

FUN

function Function to apply to each chain's list of parameter arrays. function(x) where x is a named list of array objects.

...

Options passed to internal functions.

Value

list. If FUN = NULL, then each element represents a chain. Each element of the chain is a named list of arrays, each array representing a parameter array and including the iterations of that parameter. If FUN != NULL, then each element is the result of FUN.

See Also

Other Mcmcdb methods: Mcmcdb-class, McmcdbMem-class, McmcdbWide-class, mcmcdb_flatpars, mcmcdb_flatpars, mcmcdb_flatpars-methods, mcmcdb_pardims, mcmcdb_pardims, mcmcdb_pardims-methods, mcmcdb_paridx, mcmcdb_paridx, mcmcdb_paridx-methods, mcmcdb_samples_chain_flatpars, mcmcdb_samples_chain_flatpars, mcmcdb_samples_chain_iter, mcmcdb_samples_chain_iter, mcmcdb_samples_flatpars_chain, mcmcdb_samples_flatpars_chain, mcmcdb_samples_parameters_chain, mcmcdb_samples_parameters_chain, summary, summary-methods

Examples

1
2
3
data(line_samples)
line_samples_chain_pars <- mcmcdb_samples_chain_parameters(line_samples)
lapply(line_samples_chain_pars[[1]], dim)

jrnold/mcmcdb documentation built on May 20, 2019, 1:04 a.m.