if (FALSE) {
set.seed( 100 )
# Generating multivariate normal data from a 'random' graph
data.sim <- bdgraph.sim( n = 50, p = 6, size = 7, vis = TRUE )
# Running sampling algorithm based on GGMs
sample.ggm <- bdgraph( data = data.sim, method = "ggm", iter = 10000 )
# Confusion Matrix for GGM method
conf.mat( pred = sample.ggm, actual = data.sim )
}
Run the code above in your browser using DataLab