Skip to contents

Produce traceplot for the specified parameter

Usage

traceplot(results, par, ind, chains = -1, ylim = NA, T = 1000)

Arguments

results

The output of gibbs_wrapper.

ind

The index of the parameter. For "B" it is a two-vector. For "sigma1", "sigma0" and "pi" it is a single number. For "sigma" ind is ignored.

chains

The indices of chains to be included in the plot. Default is -1, which uses all the chains.

ylim

The range of y-axis in the final plot

T

The number of warmup period.

pars

A parameter to be ploted. Must be one of "B", "sigma", "sigma1", "sigma0" and "pi".

Value

A traceplot of a scalar parameter after warmup-period