Learn R Programming

nlist (version 0.4.0)

thin.default: Thin MCMC Object

Description

Thins an MCMC object's iterations.

Usage

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

Value

The thinned MCMC object.

Arguments

x

An object.

nthin

A positive integer of the thinning rate.

...

Unused.

Examples

Run this code
thin(nlists(nlist(x = 1), nlist(x = 2), nlist(x = 3), nlist(x = 4)), nthin = 2)

Run the code above in your browser using DataLab