ptrace {BHTSpack}R Documentation

Trace (ACF) Plots

Description

This function outputs trace plots of certain latent variables.

Usage

ptrace(res, var, ndisc, nr, nc, type="trace")

Arguments

res

An output object from bhts().

var

Variable for which to display convergence diagnostic plots. Current options are mu0 (displaying \mu_{01},\ldots,\mu_{0K}), mu1 (displaying \mu_{11},\ldots,\mu_{1K}), sigma0 (displaying \sigma_{01}^2,\ldots,\sigma_{0K}^2), sigma1 (displaying \sigma_{11}^2,\ldots,\sigma_{1K}^2), pk0 (displaying \lambda_{1}^{(0)},\ldots,\lambda_{K}^{(0)}) and pk1 (displaying \lambda_{1}^{(1)},\ldots,\lambda_{K}^{(1)}).

ndisc

Number of iterations for which to discard samples.

nr

Number of rows in the resulting composite plot.

nc

Number of columns in the resulting composite plot.

type

Type of convergence diagnostic. Currently implemented are trace plots (default type="trace") and ACF plots (type="acf")

Examples

 #See package vignette

[Package BHTSpack version 0.6 Index]