learn: Discover the structure around a single node

Description Usage Arguments Value Author(s) See Also

Description

Learn the Markov blanket or the neighbourhood centered on a node.

Usage

1
2
3
4
learn.mb(x, node, method, whitelist = NULL, blacklist = NULL, start = NULL,
  test = NULL, alpha = 0.05, B = NULL, debug = FALSE, optimized = TRUE)
learn.nbr(x, node, method, whitelist = NULL, blacklist = NULL, start = NULL,
  test = NULL, alpha = 0.05, B = NULL, debug = FALSE, optimized = TRUE)

Arguments

x

a data frame containing the variables in the model.

node

a character string, the label of the node whose local structure is being learned.

method

a character string, the label of a structure learning algorithm. Possible choices are constraint-based algorithms for learn.mb and local discovery algorithms for learn.nbr.

whitelist

a vector of character strings, the labels of the whitelisted nodes.

blacklist

a vector of character strings, the labels of the blacklisted nodes.

start

a vector of character strings, the labels of the nodes to be included in the Markov blanket before the learning process (in learn.mb). Note that the nodes in start can be removed from the Markov blanket by the learning algorithm, unlike the nodes included due to whitelisting.

test

a character string, the label of the conditional independence test to be used in the algorithm. If none is specified, the default test statistic is the mutual information for categorical variables, the Jonckheere-Terpstra test for ordered factors and the linear correlation for continuous variables. See bnlearn-package for details.

alpha

a numeric value, the target nominal type I error rate.

B

a positive integer, the number of permutations considered for each permutation test. It will be ignored with a warning if the conditional independence test specified by the test argument is not a permutation test.

debug

a boolean value. If TRUE a lot of debugging output is printed; otherwise the function is completely silent.

optimized

a boolean value. See bnlearn-package for details.

Value

A vector of character strings, the labels of the nodes in the Markov blanket (for learn.mb) or in the neighbourhood (for learn.nbr).

Author(s)

Marco Scutari

See Also

constraint-based algorithms, local discovery algorithms.


vspinu/bnlearn documentation built on May 3, 2019, 7:08 p.m.