Learn R Programming

hmma (version 1.1.0)

createbnFromData: Creates a Bayesian network from a datafile

Description

The createbnFromData creates a Bayesian network from the datafile that is supplied. The $x parameter of the datafile should contain the actual data, while the $N component should contain the observation lengths.

Usage

createbnFromData(data, seed, debug = FALSE)

Arguments

data

The datafile as specified above.

seed

Seed.

debug

Switches debug mode on/off.

Details

The possible outputs of a node are based on the unique values in the dataset. All unique values from a column (a random variable) are converted to possible outputs of the node in the BN.