gaussian.test {bnlearn} | R Documentation |
This a synthetic data set used as a test case in the bnlearn package.
data(gaussian.test)
The gaussian.test
data set contains the seven normal
(Gaussian) variables.
## The modelstring() of this data set is: # [A][B][E][G][C|A:B:E][D|B][F|A:D:E:G] # these are the R commands used to generate this data set. ## Not run: a = data.frame(A = rnorm(5000, 1, 1), B = rnorm(5000, 2, 3), C = rep(0, 5000), D = rep(0, 5000), E = rnorm(5000, 3.5, 2), F = rep(0, 5000), G = rnorm(5000, 5, 2)) a$C = 2 * (a$A + a$B) + rnorm(5000, 2, 0.5) a$D = 1.5 * a$B + rnorm(5000, 6, 0.33) a$F = 2 * a$A + a$D + a$E + 1.5 * a$G + rnorm(5000, 0, 1) ## End(Not run)