Description Usage Arguments Value See Also Examples
View source: R/combine-samples.R
Combines samples of two MCMC objects (with the same parameters, chains and iterations) using a function.
1 | combine_samples(x, x2, fun = mean, ...)
|
x |
An MCMC object. |
x2 |
a second MCMC object. |
fun |
The function to use to combine the samples. The function must return a scalar. |
... |
Unused. |
The combined samples as an MCMC object with the same parameters, chains and iterations as the original objects.
Other combine:
combine_dimensions()
,
combine_samples_n()
1 | combine_samples(mcmcr_example, mcmcr_example, fun = sum)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.