Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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.

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)

bnlearn

Bayesian Network Structure Learning, Parameter Learning and Inference

v4.6.1
GPL (>= 2)
Authors
Marco Scutari [aut, cre], Robert Ness [ctb]
Initial release
2020-09-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.