thin-method: Get or set the number of thinning intervals.

Description Usage Arguments Details Value Examples

Description

This function gets or sets the number of thinning intervals used for an MCMC simulation.

Usage

1
2
3
4
5
6
thin(object)

thin(object) <- value

## S4 method for signature 'McmcParams'
thin(object)

Arguments

object

see showMethods(thin)

value

numeric. Setting the thin parameter to 5 implies that every fifth iteration would be saved.

Details

The total number of iterations saved in the MultiBatch object is specified by the 'iter' parameter. If, for example, iter is set to 1000 and the thin parameter is set to 5, the MCMC will perform 5000 simulations but only 1000 will be saved.

Value

An integer of the number of thinning intervals

Examples

1
2

scristia/CNPBayes documentation built on Aug. 9, 2020, 7:31 p.m.