mcmcdb_samples_flatpars-methods: Extract MCMC Samples (Flat parameter form)

Description Arguments Value See Also Examples

Description

Extract MCMC samples from an object as a a matrix of flat parameters.

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

...

Options passed to internal functions.

Value

If FUN = NULL, then a matrix with columns equal to flat parameters, and rows equal to iterations. If FUN != NULL, then a list, with the results of FUN applied to each flat parameter.

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_iter, mcmcdb_samples_iter, 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
5
data(line_samples)
line_wide <- mcmcdb_samples_flatpars(line_samples)
dim(line_wide)
head(line_wide)
summary(line_wide)

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