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( data.sim, bdgraph.obj )
# To compare the results based on CGGMs approach
bdgraph.obj2 <- bdgraph( data = data.sim, method = "gcgm", iter = 10000 )
# To Compare the resultss
plotroc( data.sim, list( bdgraph.obj, bdgraph.obj2 ), legend = FALSE )
}
Run the code above in your browser using DataLab