Learn R Programming

BDgraph (version 2.13)

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
An object with S3 class "bdgraph".
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 Wit, E. C. (2014). Bayesian structure learning in sparse Gaussian graphical models, Bayesian Analysis, acceped. http://arxiv.org/abs/1210.5371v6

See Also

bdgraph

Examples

Run this code
# generating synthetic multivariate normal data from a 'random' graph
  data.sim <- bdgraph.sim( n = 50, p = 6, size = 7, vis = TRUE )
  
  output   <- bdgraph( data = data.sim, iter = 10000 )
  
  traceplot(output)
  
  traceplot( output, acf = TRUE, pacf = TRUE )

Run the code above in your browser using DataLab