Learn R Programming

BDgraph (version 2.7)

traceplot: Trace plot of graph size

Description

Trace plot of graph size from all bdgraph output. It is a tool for checking the convergency of the BD-MCMC algorithm.

Usage

traceplot (output, acf = FALSE, pacf = FALSE, main = NULL, ...)

Arguments

output
a list which is the result of BD-MCMC algorithm from the 'bdgraph' function.
acf
logical: if TRUE you will see the plot of autocorrelation functions for graph sizes. The default is FALSE.
pacf
logical: if TRUE you will see the plot of partial autocorrelations for graph sizes. The default is FALSE.
main
graphical parameter (see plot).
...
system reserved (no specific usage).

References

Mohammadi, A. and E. C. Wit (2012). Gaussian graphical model determination based on birth-death MCMC inference, arXiv:1210.5371v4. http://arxiv.org/abs/1210.5371v4

See Also

bdgraph

Examples

Run this code
# generating the data from a random graph
  data.sim <- bdgraph.sim(n = 100, p = 8, vis = TRUE)
  
  output   <- bdgraph(data.sim, mean = 0, iter = 2000, save.all = TRUE)
  
  traceplot(output)
  
  traceplot(output, acf = TRUE, pacf = TRUE)

Run the code above in your browser using DataLab