specify.prior: Build a black list based on prior knowledge

Description Usage Arguments Details

Description

Utility for specifying known root and leaf nodes in a network, to be used in conjunction with the blacklist argument of network estimation methods.

Usage

1
specify.prior(roots = NULL, leaves = NULL, nodes, indices = FALSE)

Arguments

roots

Vector of root nodes. May be character or integer.

leaves

Vector of leaf nodes. May be character or integer.

nodes

Full vector of node names of the entire network. Both roots and leaves must be a subset of this vector.

indices

Logical: Return indices or character names?

Details

Builds an (m+k)x2 matrix, where m is the number of user-specified root nodes and k is the number of user-specified leaf nodes.


itsrainingdata/sparsebnUtils documentation built on June 5, 2019, 5:43 p.m.