adja2crossed: creates a crossed-adjacency matrix from two ones

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

adja2crossedR Documentation

creates a crossed-adjacency matrix from two ones

Description

Like crossed4nbn1nbn but at the level of adjacency matrices. Must be much efficient when regression coefficients are not needed.

Usage

adja2crossed(adj1, adj2, nona=as.vector(outer(dimnames(adj1)[[1]],
	  dimnames(adj2)[[1]], paste, sep="_")))

Arguments

adj1

The first adjacency matrix.

adj2

The second adjacency matrix.

nona

The node names to give to the crossed /nbn/, the nodes of the nbn1 varying first.

Details

Just two Kronecker products of matrices.

Value

The resulting crossed adjacency matrix.

Examples

 print(adja2crossed(rbmn0adja.01, rbmn0adja.01));

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