mcmcParams {CNPBayes} | R Documentation

## Retrieve MCMC parameters from model.

### Description

View number of iterations, burnin, etc.

Replace number of iterations, burnin, etc. Any update of the MCMC parameters will trigger an update of the chains. However, if iter (the number of MCMC iterations) is set to a nonpositive value, the chains will not be updated and kept as is.

### Usage

    mcmcParams(object)

    mcmcParams(object, force = FALSE) <- value

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

    ## S4 replacement method for signature 'MixtureModel'
    mcmcParams(object, force = TRUE) <- value

    ## S4 replacement method for signature 'list'
    mcmcParams(object, force = TRUE) <- value

    ## S4 method for signature 'list'
    mcmcParams(object)

### Arguments

`object` | see `showMethods(mcmcParams)`
`force` | logical value. If false (default) the update will not proceed.
`value` | an object of class 'McmcParams' containing the new number of iterations, etc.

### Value

An object of class 'McmcParams'

### Examples

         mcmcParams(SingleBatchModelExample)

[Package CNPBayes version 1.12.0 Index]