thin_draws {posterior} | R Documentation |
Thin draws
objects
Description
Thin draws
objects to reduce their size and autocorrelation in the chains.
Usage
thin_draws(x, thin, ...)
## S3 method for class 'draws'
thin_draws(x, thin, ...)
## S3 method for class 'rvar'
thin_draws(x, thin, ...)
Arguments
x |
(draws) A |
thin |
(positive integer) The period for selecting draws. |
... |
Arguments passed to individual methods (if applicable). |
Value
A draws
object of the same class as x
.
Examples
x <- example_draws()
niterations(x)
x <- thin_draws(x, thin = 5)
niterations(x)
[Package posterior version 1.5.0 Index]