mcmcdb_samples_parameters_chain-methods: Extract MCMC samples (Parameter arrays, chains)

Description Arguments Value See Also Examples

Description

Return MCMC samples as a list of parameter arrays Each parameter array is a list of arrays, containing the iterations in each chain.

Arguments

object

An object containing the MCMC samples.

parameters

character. Parameter arrays to include. If NULL, all parameter arrays.

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 list of chains. The function should take the form function(x), where x is a list of array objects.

...

Options passed to internal functions.

Value

list. If FUN = NULL, each element of the list is a list of array objects, representing the sample values for each parameter array in each chain. If FUN != NULL, then each element contains the results of FUN for that parameter.

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_chain_parameters, mcmcdb_samples_chain_parameters, mcmcdb_samples_flatpars_chain, mcmcdb_samples_flatpars_chain, summary, summary-methods

Examples

1
2
3
data(line_samples)
line_samples_pc <- mcmcdb_samples_parameters_chain(line_samples)
str(line_samples_pc)

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