powered by
Combines samples of two MCMC objects (with the same parameters, chains and iterations) using a function.
combine_samples(x, x2, fun = mean, ...)# S3 method for mcmcarray combine_samples(x, x2, fun = mean, ...)# S3 method for mcmcr combine_samples(x, x2, fun = mean, ...)
# S3 method for mcmcarray combine_samples(x, x2, fun = mean, ...)
# S3 method for mcmcr combine_samples(x, x2, fun = mean, ...)
An MCMC object.
A second MCMC object.
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.
mcmcarray: Combine samples of two mcmcarray objects
mcmcarray
mcmcr: Combine samples of two mcmcr objects
mcmcr
# NOT RUN { combine_samples(mcmcr_example, mcmcr_example, fun = sum) # }
Run the code above in your browser using DataLab