arcs4nbn1nbn: returns the list of 'parallel' arcs of a crossed-nbn
Description
Returns a list of matrices with two columns (as needed by
estimate8constrainednbn
) indicating corresponding arcs for
each arcs/nodes of nbn1
(or nbn2
) of the crossed /nbn/
obtained when crossing /nbn1/ and /nbn2/ with node names given by
nona
.
Usage
arcs4nbn1nbn(nbn1, nbn2, type="a1", nona=as.vector(outer(names(nbn1),
names(nbn2), paste, sep="_")))
Value
The resulting named (after node names) list of matrices.
Arguments
- nbn1
The first generating /nbn/.
- nbn2
The second generating /nbn/.
- type
Must be "a1"
to indicate that the parallelism
must be done for each arc of nbn1
. "a2"
for each arc of
nbn2
. Or "n1"
for each node of nbn1
. Or
"n2"
for each node of nbn2
.
- nona
The node names to give to the crossed /nbn/, the nodes
of the nbn1
varying first.
Examples
Run this code print(arcs4nbn1nbn(rbmn0nbn.01, rbmn0nbn.04));
Run the code above in your browser using DataLab