mcmcdb_samples_flatpars_chain-methods: Extract MCMC samples (Flat parameters, chains)

Description Arguments Value See Also Examples

Description

Return MCMC samples as a list of flat parameters. Each flat parameter is a list of numeric vectors, by chain.

Arguments

object

An object containing the MCMC samples.

flatpars

character. Flat parameters to include. If NULL, all flat parameters.

parameters

character. Parameter arrays to include. If NULL, all parameter arrays. The union of flat parameters in parameters and flatpars is included.

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 flat paramter. Function of the form function(x), where x is a list of numeric vectors, representing the flat parameters in each chain.

...

Options passed to internal functions.

Value

list. If FUN = NULL, then each element of the list is a list of numeric vectors, representing the samples of each flat parameter in each chain. If FUN != NULL, then the elements are the results 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_chain_parameters, mcmcdb_samples_chain_parameters, mcmcdb_samples_parameters_chain, mcmcdb_samples_parameters_chain, summary, summary-methods

Examples

1
2
3
data(line_samples)
line_samples_fc <- mcmcdb_samples_flatpars_chain(line_samples)
str(line_samples_fc)

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