Combines samples of two MCMC objects (with the same parameters, chains and iterations) using a function.
Value
The combined samples as an MCMC object with the same parameters, chains and iterations as the original objects.
See also
Other combine:
combine_dimensions(),
combine_samples_n()
Examples
combine_samples(mcmcr_example, mcmcr_example, fun = sum)
#> $alpha
#> [1] 7.43605 9.43605
#> 
#> nchains:  2 
#> niters:  400 
#> 
#> $beta
#>          [,1]     [,2]
#> [1,] 1.943307 3.943307
#> [2,] 3.943307 5.943307
#> 
#> nchains:  2 
#> niters:  400 
#> 
#> $sigma
#> [1] 1.582395
#> 
#> nchains:  2 
#> niters:  400 
#> 
