merge_chains {posterior} | R Documentation |
draws
objectsMerge chains of draws
objects into a single chain. Some operations will
trigger an automatic merging of chains, for example, because chains do not
match between two objects involved in a binary operation. By default, no
warning will be issued when this happens but you can activate one via
options(posterior.warn_on_merge_chains = TRUE)
.
merge_chains(x, ...) ## S3 method for class 'draws_matrix' merge_chains(x, ...) ## S3 method for class 'draws_array' merge_chains(x, ...) ## S3 method for class 'draws_df' merge_chains(x, ...) ## S3 method for class 'draws_list' merge_chains(x, ...) ## S3 method for class 'rvar' merge_chains(x, ...) ## S3 method for class 'draws_rvars' merge_chains(x, ...)
x |
(draws) A |
... |
Arguments passed to individual methods (if applicable). |
A draws
object of the same class as x
.
x <- example_draws() # draws_array with 4 chains, 100 iters each str(x) # draws_array with 1 chain of 400 iterations str(merge_chains(x))