thin {CNPBayes} | R Documentation

## Get or set the number of thinning intervals.

### Description

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

### Usage

    thin(object)

    thin(object) <- value

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

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

    ## S4 replacement method for signature 'MixtureModel,numeric'
    thin(object) <- value

### Arguments

`object` | see showMethods(thin)
`value` | a length-one numeric vector indicating how often to save MCMC iterations to the chain. For example, a thin of 10 means that every 10th MCMC simulation is saved to the chain.

### Value

An integer of the number of thinning intervals

### Examples

         thin(SingleBatchModelExample)
         thin(SingleBatchModelExample) <- 10L

[Package CNPBayes version 1.13.5 Index]