arcs4nbn1nbn: returns the list of 'parallel' arcs of a crossed-nbn

View source: R/f08.crossed.code.r

arcs4nbn1nbnR Documentation

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="_")))

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.

Value

The resulting named (after node names) list of matrices.

Examples

 print(arcs4nbn1nbn(rbmn0nbn.01, rbmn0nbn.04));

rbmn documentation built on July 9, 2023, 6:37 p.m.