plotSelectedTraces: Plot selected traces

View source: R/GcClusterFunctions.R

plotSelectedTracesR Documentation

Plot selected traces

Description

Plot selected traces for each chain. Analysis of these traces shows whether within-chain label switching has occurred and whether the traces are stationary.

Usage

plotSelectedTraces(samplePars, procDir = ".")

Arguments

samplePars

List containing, among other things, the names of the files in which the stanfit objects are stored. Each stanfit object contains one chain comprising samples of the posterior pdf. List samplePars is return by function sampleFmm, for which the documentation includes a complete description of the list.

procDir

Directory containing the files with the stanfit objects.

Details

Three plots are generated for each chain:

  • Trace of the proportion associated with pdf 1

  • Traces of the first element of the two mean vectors.

  • Traces of the first element of the two standard deviation vectors.

Examples

## Not run: 
plotTraces(samplePars, procDir)

## End(Not run)


USGS-R/GcClust documentation built on April 17, 2023, 8:08 p.m.