Learn R Programming

bnlearn (version 3.8.1)

clgaussian.test: Synthetic (mixed) data set to test learning algorithms

Description

This a synthetic data set used as a test case in the bnlearn package.

Usage

data(gaussian.test)

Arguments

format

The clgaussian.test data set contains one normal (Gaussian) variable, 4 discrete variables and 3 conditional Gaussian variables.

Examples

Run this code
# load the data and build the correct network from the model string.
data(clgaussian.test)
res = empty.graph(names(clgaussian.test))
modelstring(res) = "[A][B][C][H][D|A:H][F|B:C][E|B:D][G|A:D:E:F]"
plot(res)

Run the code above in your browser using DataLab