chains {CNPBayes} | R Documentation

## Retrieve simulated chains from model object.

### Description

The method `chains` applied to a `MixtureModel`-derived class will return an object of class `McmcChains` that contains the chains for all simulated parameters. Typically, chains is called in conjunction with an accessor for one of these parameters.

### Usage

    chains(object)

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

### Arguments

`object` | `showMethods(chains)`

### Value

The simulated chains.

### Examples

        theta.chain <- theta(chains(MultiBatchModelExample))
        dim(theta.chain)
        plot.ts(theta.chain, plot.type="single",
                col=seq_len(k(SingleBatchModelExample)))

[Package CNPBayes version 1.12.0 Index]