densplot: Plot of posterior distribution for graph size
Description
This function is for ploting the posterior distribution of all possible graphs according to number
of their links.
Usage
densplot(output, xlim = NULL, ylim = NULL, main = NULL)
Arguments
output
a list which is the result of BD-MCMC algorithm from the 'bdgraph' function.
xlim
graphical parameter (see plot).
ylim
graphical parameter (see plot).
main
graphical parameter (see plot).
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
# generate the data from multivariate normal distribution data.sim <- bdgraph.sim(n = 100, p = 8, vis = T)
output <- bdgraph(data.sim, meanzero = T, iter = 2000)
densplot(output)