Learn R Programming

mcmcr (version 0.6.1)

combine_samples_n: Combine MCMC samples of multiple objects

Description

Combines samples of multiple MCMC objects (with the same parameters, chains and iterations) using a function.

Usage

combine_samples_n(x, ..., fun = mean)

Arguments

x

An MCMC object (or a list of mcmc objects).

...

Additional MCMC objects.

fun

A function.

See Also

Other combine: combine_dimensions(), combine_samples()

Examples

Run this code
# NOT RUN {
combine_samples_n(mcmcr_example, mcmcr_example, mcmcr_example, fun = sum)
# }

Run the code above in your browser using DataLab