chains-method: Retrieve simulated chains from model object.

Description Usage Arguments Value Examples

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

1
chains(object)

Arguments

object

showMethods(chains)

Value

The simulated chains.

Examples

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

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