nbn2nbn {rbmn} | R Documentation |
computes the /nbn/ changing its topological order
Description
returns the proposed /nbn/ with a new topological order without
modifying the joint distribution of all variables.
This allows to
directly find regression formulae within the Gaussian Bayesian
networks.
Usage
nbn2nbn(nbn, norder)
Arguments
nbn |
The /nbn/ to transform. |
norder |
The topological order to follow. It can be indicated by names or numbers. When not all nodes are included, the resulting /nbn/ is restricted to these nodes after marginalization. |
Details
BE aware that for the moment, no check is made about the topological order and if it is not, the result is FALSE!
Value
The resulting /nbn/.
Examples
print8mn(nbn2mn(rbmn0nbn.01, algo=1));
print8mn(nbn2mn(rbmn0nbn.01, algo=2));
print8mn(nbn2mn(rbmn0nbn.01, algo=3));
print8mn(nbn2mn(nbn2nbn(rbmn0nbn.02, c(1, 2, 4, 5, 3))));
print8mn(nbn2mn(nbn2nbn(rbmn0nbn.02, c(4, 1, 2, 3, 5))));
[Package rbmn version 0.9-6 Index]