mcmcdb_samples_iter-methods: Extract MCMC samples (Iterations)

Description Arguments Value See Also Examples

Description

Return MCMC samples as a list of iterations, in which each iteration is a list of parameter 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 iteration. function(x), where x is a named list of the parameter arrays for a single iteration.

return_type

character Return type of the plyr function used internally.

...

Options passed to internal functions.

Value

Return type specified in return_type.

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_long, mcmcdb_samples_long, mcmcdb_samples_parameters, mcmcdb_samples_parameters, 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_samples_iter <- mcmcdb_samples_iter(line_samples)
length(line_samples_iter)
line_samples_iter[[1]]

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