if (FALSE) {
# To generate multivariate normal data from a 'random' graph
data.sim <- bdgraph.sim(n = 30, p = 6, size = 7, vis = TRUE)
# To Run sampling algorithm
bdgraph.obj <- bdgraph(data = data.sim, iter = 10000)
# To compare the results
plotroc(bdgraph.ob2j, data.sim)
# To compare the results based on CGGMs approach
bdgraph.obj2 <- bdgraph(data = data.sim, method = "gcgm", iter = 10000)
# To Compare the resultss
plotroc(list(bdgraph.obj, bdgraph.obj2), data.sim, legend = FALSE)
}
Run the code above in your browser using DataLab