learning.test {bnlearn} | R Documentation |
This a synthetic data set used as a test case in the bnlearn package.
data(learning.test)
The learning.test
data set contains the following variables:
A
, a three-level factor with levels a
,
b
and c
.
B
, a three-level factor with levels a
,
b
and c
.
C
, a three-level factor with levels a
,
b
and c
.
D
, a three-level factor with levels a
,
b
and c
.
E
, a three-level factor with levels a
,
b
and c
.
F
, a two-level factor with levels a
and b
.
The R script to generate data from this network is shipped in the ‘network.scripts’ directory of this package.
# load the data and build the correct network from the model string. data(learning.test) res = empty.graph(names(learning.test)) modelstring(res) = "[A][C][F][B|A][D|A:C][E|B:F]" plot(res)