bn2bn: extracts a bn from a bn (way number 1)

Description Usage Arguments Value Examples

View source: R/f1.rsbn.code.r

Description

(bn) A new bn is generated from the initial bn reduced to the targetted nodes indicated in 'ion' and the parents of these nodes. Independent uniform distributions are given to the parents AND AT THE SAME TIME THEIR OWN RELATIONSHIPS ARE DELETED. For some argument about this practice, see the DETAILS section of function study8nd.
To give an example, the graph (A->B; A->C; B->C) will result into (A->C; B->C) if (C) is the targetted node.

Usage

1
bn2bn(bn, ion)

Arguments

bn

The original bn.

ion

The definition of the nodes (iin or name vector)

Value

The resulting bn

Examples

1
2
 rebastaba3k("RESET"); # (only for R checking)
 print(bn2bn(rebastaba.bn2, "A"));

rebastaba documentation built on May 21, 2017, 1:22 a.m.

Search within the rebastaba package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.