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:

Note

The R script to generate data from this network is shipped in the ‘network.scripts’ directory of this package.

Examples

# 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)

[Package bnlearn version 1.7 Index]