| learning.test | 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 available from https://www.bnlearn.com/documentation/networks/.
# load the data.
data(learning.test)
# create and plot the network structure.
dag = model2network("[A][C][F][B|A][D|A:C][E|B:F]")
## Not run: graphviz.plot(dag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.