# 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, save.all = TRUE)
traceplot(output)
traceplot(output, acf = T, pacf = T)
Run the code above in your browser using DataLab