ptrace: Trace (ACF) Plots

Description Usage Arguments Examples

View source: R/ptrace.R

Description

This function outputs trace plots of certain latent variables.

Usage

1
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 μ_{01},…,μ_{0K}), mu1 (displaying μ_{11},…,μ_{1K}), sigma0 (displaying σ_{01}^2,…,σ_{0K}^2), sigma1 (displaying σ_{11}^2,…,σ_{1K}^2), pk0 (displaying λ_{1}^{(0)},…,λ_{K}^{(0)}) and pk1 (displaying λ_{1}^{(1)},…,λ_{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

1
 #See package vignette

BHTSpack documentation built on Feb. 8, 2021, 5:07 p.m.