mcmcdb_samples_parameters-methods: Extract MCMC samples (Parameter arrays)

Description Arguments Value See Also Examples

Description

Extract MCMC samples from an object as a a list of arrays.

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 paramter array. function(x) where x is the

...

Options passed to internal functions.

Value

list of array objects. The arrays represent all iterations of each parameter array.

See Also

Other McmcdbWide methods: $, $-methods, McmcdbWide-class, [, [-methods, [[, [[-methods, mcmcdb_chains, mcmcdb_drop_chain, mcmcdb_drop_chain, mcmcdb_drop_chain, mcmcdb_drop_iters, mcmcdb_drop_iters, mcmcdb_drop_iters, mcmcdb_drop_parameter, mcmcdb_drop_parameter, mcmcdb_samples_flatpars, mcmcdb_samples_flatpars, mcmcdb_samples_iter, mcmcdb_samples_iter, mcmcdb_samples_long, mcmcdb_samples_long, mcmcdb_unflatten, mcmcdb_unflatten, mcmcdb_unflatten, mcmcdb_unflatten, mcmcdb_unflatten, mcmcdb_unflatten, mcmcdb_unflatten, mcmcdb_unflatten, mcmcdb_unflatten-method

Examples

1
2
3
4
data(line_samples)
line_arrays <- mcmcdb_samples_parameters(line_samples)
summary(line_arrays)
lapply(line_arrays, dim)

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