View source: R/f08.crossed.code.r
adja2crossed | R Documentation |
Like crossed4nbn1nbn but at the level of adjacency matrices. Must be much efficient when regression coefficients are not needed.
adja2crossed(adj1, adj2, nona=as.vector(outer(dimnames(adj1)[[1]],
dimnames(adj2)[[1]], paste, sep="_")))
adj1 |
The first adjacency matrix. |
adj2 |
The second adjacency matrix. |
nona |
The node names to give to the crossed /nbn/, the nodes
of the |
Just two Kronecker products of matrices.
The resulting crossed adjacency matrix.
print(adja2crossed(rbmn0adja.01, rbmn0adja.01));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.