Learn R Programming

BDgraph (version 2.6)

plotcoda: Convergency plots

Description

This funciton 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, skip = NULL, trace = TRUE, xlim = NULL, ylim = NULL, main = NULL)

Arguments

output
a list which is the result of BD-MCMC algorithm from the 'bdgraph' function.
skip
it is a option for getting fast result for a cumulative plot according to part of the iterations.
trace
logical: if trace = TRUE, tracing information printing is abled. The default value is TRUE.
xlim
graphical parameter (see plot).
ylim
graphical parameter (see plot).
main
graphical parameter (see plot).

Details

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

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
# generate the data from multivariate normal distribution
  data.sim <- bdgraph.sim(n = 100, p = 8, graph = "circle", vis = T)
  
  output <- bdgraph(data.sim, meanzero = T, iter = 2000, save.all = TRUE)
 
  plotcoda(output)

Run the code above in your browser using DataLab