bind_draws {posterior} | R Documentation |
Bind draws
objects together
Description
Bind multiple draws
objects together to form a single draws
object.
Usage
bind_draws(x, ...)
## S3 method for class 'draws_matrix'
bind_draws(x, ..., along = "variable")
## S3 method for class 'draws_array'
bind_draws(x, ..., along = "variable")
## S3 method for class 'draws_df'
bind_draws(x, ..., along = "variable")
## S3 method for class 'draws_list'
bind_draws(x, ..., along = "variable")
## S3 method for class 'draws_rvars'
bind_draws(x, ..., along = "variable")
Arguments
x |
(draws) A |
... |
(draws) Additional |
along |
(string) The dimension along which draws objects should be bound
together. Possible values are |
Value
A draws
object of the same class as x
.
Examples
x1 <- draws_matrix(alpha = rnorm(5), beta = rnorm(5))
x2 <- draws_matrix(alpha = rnorm(5), beta = rnorm(5))
ndraws(x1)
ndraws(x2)
x3 <- bind_draws(x1, x2, along = "draw")
ndraws(x3)
x4 <- draws_matrix(theta = rexp(5))
x5 <- bind_draws(x1, x4, along = "variable")
variables(x5)
[Package posterior version 1.6.0 Index]