Learn R Programming

rbmn (version 0.9-6)

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

Value

The resulting crossed adjacency matrix.

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.

Examples

Run this code
 print(adja2crossed(rbmn0adja.01, rbmn0adja.01));

Run the code above in your browser using DataLab