Description Usage Arguments Value Author(s) Examples
Select variables (columns) of a mcmc
and mcmc.list
objects.
1 2 3 4 5 6 7 8 9 10 | mct_select(object, variable, ...)
## Default S3 method:
mct_select(object, variable, ...)
## S3 method for class 'mcmc'
mct_select(object, variable, ...)
## S3 method for class 'mcmc.list'
mct_select(object, variable, ...)
|
object |
An object of class |
variable |
The variables to select. Can be the column positions (atomic integer) or column names (atomic character). |
... |
Dots argument, to pass the variables separately. |
The input object mcmc
or
mcmc.list
with the selected columns.
Eduardo Jr
1 2 3 4 5 | data("line", package = "coda")
str(line)
str(mct_select(line, "alpha"))
str(mct_select(line, "alpha", "beta"))
str(mct_select(line[[1]], "sigma"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.