subset.emc {EMC2} | R Documentation |
Shorten an emc object
Description
Shorten an emc object
Usage
## S3 method for class 'emc'
subset(
x,
stage = "sample",
filter = NULL,
thin = 1,
keep_stages = FALSE,
length.out = NULL,
...
)
Arguments
x |
an emc object |
stage |
A character string. Indicates from which sampling stage(s) to take the samples from (i.e. |
filter |
Integer or numeric vector. If an integer is supplied, iterations up until that integer are removed. If a vector is supplied, the iterations within the range are kept. |
thin |
An integer. By how much to thin the chains |
keep_stages |
Boolean. If |
length.out |
Integer. Alternatively to thinning, you can also select a desired length of the MCMC chains, which will be thinned appropriately. |
... |
additional optional arguments |
Value
A shortened emc object
Examples
subset(samples_LNR, length.out = 10)
[Package EMC2 version 2.0.2 Index]