Learn the structure of a hybrid Bayesian network using the hill climbing
local search method.
Usage
LearningHC(dataset, numIntervals = NULL)
Arguments
dataset
A dataset with discrete and continuous variables. If the discrete
variables are not of class "factor", they are automatically converted.
numIntervals
A "numeric" value indicating the number of categories
used when discretizing a continuous variable, corresponding to intervals of
equal width. By default it is NULL, meaning that the continuous variables
are not discretized.
Value
The output is a "bn" object containing the learned graph.
Details
LearningHC() automatically converts non-numeric variables into factors
before calling function hc() from the bnlearn package. LearningHC() can also
be used to discretize the dataset, using the equal width method, before calling hc().