Description Usage Arguments Details Value See Also Examples
Use the CONCOR algorithm to find network positions, continuing through a specified number
of splits, and output blockmodel
object(s).
1 | make_blk(adj_list, nsplit = 1)
|
adj_list |
A list of adjacency matrices, each representing a different relation for the same nodes. |
nsplit |
The total number of splits CONCOR will (attempt to) perform. |
Runs concor
to a specified number of splits (nsplit
) and creates a
blockmodel
type object from each input matrix in adj_list
using the
membership vector generated by concor
. This object holds summary
information of interest, such as the reduced density matrix, as well as the permuted
adjacency matrix that shows the blocked structure.
See the help file for blockmodel
in the sna package for more
details.
A list of blockmodel
type objects, one for each input adjacency matrix. Each
blockmodel in the list corresponds to one relation.
1 2 3 4 5 6 7 8 9 10 | g1 <- matrix(c(0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0), ncol = 4)
rownames(g1) <- c("a", "b", "c", "d")
colnames(g1) <- c("a", "b", "c", "d")
g2 <- matrix(c(0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0), ncol = 4)
rownames(g2) <- c("a", "b", "c", "d")
colnames(g2) <- c("a", "b", "c", "d")
gl <- list(g1, g2)
make_blk(gl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.