Skip to contents

Plots diagnostics that from the output of the ng.check function. It includes the contribution of each index in the latent field to the overall Bayes factor (BF) and the obsedved BF sensitivity compared against the reference distribution.

Usage

plot.gaussdiag(x, n = rep(0, nrow(x$BF.check)), samples = NULL, ...)

Arguments

x

List. Output of the ng.check function

n

Integer. Plots the index number of the n indeces with the largest BF sensitivity.

samples

Optional vector. Samples of the reference distribution.

Value

A list of ggplots:

  • First: The contribution of each index to the overallBF sensitivity: \(d_i(\mathbf{y})\).

  • Second: Reference distribution of the BF sensitivity vs observed BF sensitivity.