Learn R Programming

bnlearn (version 4.9.1)

learning.test: 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)

Arguments

Format

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.

Examples

Run this code
# 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]")
if (FALSE) graphviz.plot(dag)

Run the code above in your browser using DataLab