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 31, 2017, 3:26 a.m.

Related to bn2bn in rebastaba...