inst/extdata/melancon_gaussian.R

library(clusterGeneration)
# A MVN Network Simulated with --------------------------
num.vars <- 15
num.obs <- 1000
## Mean 0 data from a random MVN covariance matrix
net <- simGaussianNet(num.vars, c(.5, 1.5), "melancon")
## Data simulated directly from the Bayesian network.  
boot <- rbn(hairy, n = num.obs) %>% 
  boot.strength(R = 500, m = nrow(hairy.data),
                            algorithm = "hc", 
                algorithm.args = list(score = "bic-g"))
melancon.boot <- list(truth = net, boot = boot)
save(melancon.boot, file = "data/melancon_boot.Rdata")
robertness/bninfo documentation built on May 27, 2019, 10:32 a.m.