as.data.frame.brmsfit | R Documentation |
Extract posterior draws in conventional formats as data.frames, matrices, or arrays.
## S3 method for class 'brmsfit'
as.data.frame(
x,
row.names = NULL,
optional = TRUE,
pars = NA,
variable = NULL,
draw = NULL,
subset = NULL,
...
)
## S3 method for class 'brmsfit'
as.matrix(x, pars = NA, variable = NULL, draw = NULL, subset = NULL, ...)
## S3 method for class 'brmsfit'
as.array(x, pars = NA, variable = NULL, draw = NULL, subset = NULL, ...)
x |
A |
row.names , optional |
Unused and only added for consistency with
the |
pars |
Deprecated alias of |
variable |
A character vector providing the variables to extract. By default, all variables are extracted. |
draw |
The draw indices to be select. Subsetting draw indices will lead to an automatic merging of chains. |
subset |
Deprecated alias of |
... |
Further arguments to be passed to the corresponding
|
A data.frame, matrix, or array containing the posterior draws.
as_draws
,
subset_draws
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.