gewekePlot: Geweke plot

View source: R/gewekePlot.R

gewekePlotR Documentation

Geweke plot

Description

Creates a plot of the Geweke Z-score compareing fractions of samples of the data to the final samples.

Usage

gewekePlot(
  x,
  frac_1 = 0.1,
  frac_2 = 0.5,
  n_bins = 20,
  p_value_threshold = 0.05,
  threshold_line_colour = "grey",
  plt_title = "Geweke diagnostic plot"
)

Arguments

x

An mcmc object.

frac_1

A fraction between 0 and 1, the fraction of samples to consider in the first Z-score calculation.

frac_2

A fraction between 0 and 1, the fraction of samples from the end of the MCMC iterations to be considered in calculating the Z-score.

n_bins

The number of bins of samples to be considered.

p_value_threshold

The significance threshold included in the final plot.

threshold_line_colour

The colour of the significance threshold line.

plt_title

The title of the plot.

Value

A line graph (ggplot2 object) of the Geweke Z-score at different intervals.


stcolema/mdiHelpR documentation built on July 28, 2024, 5:41 a.m.