Learn R Programming

BDgraph (version 2.7)

plotcoda: Convergency plots

Description

This function according to "bdgraph" output gives us several plots. These plots are useful tools for checking the convergency of the BD-MCMC algorithm.

Usage

plotcoda(output, thin = NULL, trace = TRUE, main = NULL, ...)

Arguments

output
a list which is the result of BD-MCMC algorithm from the 'bdgraph' function.
thin
it is a option for getting fast result for a cumulative plot according to part of the iterations.
trace
logical: if TRUE (default), tracing information is printed.
main
graphical parameter (see plot).
...
system reserved (no specific usage).

Details

Note that a spending time for this function depends on the graph. It should be slow for the high-dimensional graphs. To make it faster you can choose bigger value for 'thin'.

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, graph = "circle", vis = TRUE)
  
  output <- bdgraph(data.sim, mean = 0, iter = 2000, save.all = TRUE)
 
  plotcoda(output)

Run the code above in your browser using DataLab