Learn R Programming

CNPBayes (version 1.2.2)

chains: 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)
"chains"(object)

Arguments

object
showMethods(chains)

Value

The simulated chains.

Examples

Run this code
theta.chain <- theta(chains(MarginalModelExample))
dim(theta.chain)
plot.ts(theta.chain, plot.type="single",
        col=seq_len(k(MarginalModelExample)))

Run the code above in your browser using DataLab