learning.test {bnlearn} | R Documentation |
Synthetic (discrete) data set to test learning algorithms
Description
This a synthetic data set used as a test case in the bnlearn package.
Usage
data(learning.test)
Format
The learning.test
data set contains the following variables:
-
A
, a three-level factor with levelsa
,b
andc
. -
B
, a three-level factor with levelsa
,b
andc
. -
C
, a three-level factor with levelsa
,b
andc
. -
D
, a three-level factor with levelsa
,b
andc
. -
E
, a three-level factor with levelsa
,b
andc
. -
F
, a two-level factor with levelsa
andb
.
Note
The R script to generate data from this network is available from https://www.bnlearn.com/documentation/networks/.
Examples
# 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)
[Package bnlearn version 5.0 Index]