Learn R Programming

realTimeSurv (version 1.0)

convergence: MCMC convergence diagnostics

Description

Diagnostics for convergence of the MCMC chains from a call to lgcp.

Usage

convergence(lg, plots = TRUE)

Arguments

lg

Output from a call to lgcp

plots

Logical indicating whether to plot MCMC traceplots

Value

Traceplot of the MCMC chains of parameters from the linear predictor and covariance function is plotted, and R-hat and ESS statistics are printed.

Details

Produces a traceplot of the model parameters and prints R-hat and ESS statistics.