makeblk: Make 'blockmodel' objects using CONCOR partition

Description Usage Arguments Details Value See Also Examples

Description

Use the CONCOR algorithm to find network positions, continuing through a specified number of splits, and output blockmodel object(s).

Usage

1
make_blk(adj_list, nsplit = 1)

Arguments

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.

Details

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.

Value

A list of blockmodel type objects, one for each input adjacency matrix. Each blockmodel in the list corresponds to one relation.

See Also

blockmodel, concor

Examples

 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)

concorR documentation built on Nov. 26, 2020, 1:08 a.m.