Description Usage Arguments Methods (by class) See Also Examples
Subsets an MCMC object by its chains, iterations and/or parameters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## S3 method for class 'mcmcarray'
subset(x, chains = NULL, iters = NULL, iterations = NULL, ...)
## S3 method for class 'mcmcr'
subset(
x,
chains = NULL,
iters = NULL,
pars = NULL,
iterations = NULL,
parameters = NULL,
...
)
## S3 method for class 'mcmcrs'
subset(
x,
chains = NULL,
iters = NULL,
pars = NULL,
iterations = NULL,
parameters = NULL,
...
)
|
x |
The MCMC object to subset |
chains |
An integer vector of chains. |
iters |
An integer vector of iterations. |
iterations |
An integer vector (or NULL) of the iterations to subset by. |
... |
Unused. |
pars |
A character vector of parameter names. |
parameters |
A character vector (or NULL) of the parameters to subset by. |
mcmcarray
: Subset an mcmcarray object
mcmcr
: Subset an mcmcr object
mcmcrs
: Subset an mcmcrs object
1 2 3 4 | subset(mcmcr_example,
chains = 2L, iters = 1:100,
pars = c("beta", "alpha")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.