Learn R Programming

mcmcr (version 0.0.2)

thin: Thin MCMC Samples

Description

Thin an MCMC objects samples.

Usage

# S3 method for mcmc
thin(x, nthin = 1L, ...)

# S3 method for mcmc.list thin(x, nthin = 1L, ...)

# S3 method for mcmcarray thin(x, nthin = 1L, ...)

# S3 method for mcmcr thin(x, nthin = 1L, ...)

# S3 method for mcmcrs thin(x, nthin = 1L, ...)

Arguments

x

An MCMC object

nthin

A count of the thinning rate.

...

Unused

Value

The thinned object.

Methods (by class)

  • mcmc: Thin MCMC samples for an mcmc object

  • mcmc.list: Thin MCMC samples for an mcmc.list object

  • mcmcarray: Thin MCMC samples for an mcmcarray object

  • mcmcr: Thin MCMC samples for an mcmcr object

  • mcmcrs: Thin MCMC samples for an mcmcrs object

See Also

coda::thin

Examples

Run this code
# NOT RUN {
thin(mcmcr_example, nthin = 10L)
# }

Run the code above in your browser using DataLab