View source: R/path_distances.R
compound_relation | R Documentation |
This function returns the relational composition of the given matrices. The compound relations define the paths and the social process flows of the given matrices (Pattison, 1993). However, those whom they link may or may not be aware of them. The compound relations allow us to identify "the possibly very long and devious chains of effects propagating withing concrete social systems through links of various kinds" (Lorrain & White, 1971: 50).
compound_relation(l = list(), comp = 3, matrices = FALSE, equate = FALSE)
l |
A list of matrices. |
comp |
A number with the length of paths to form the compound relation. |
matrices |
Whether to return the resulting matrices of the compound relations. |
equate |
Whether to return the semigroup equations. |
This function provides the composition or concatenation of compound relations and the primitives of the matrices.
Alejandro Espinosa-Rada
Boorman, Scott A. and White, Harrison C. (1976) Social Structure from Multiple Networks. II. Role Structures. American Journal of Sociology. 81(6): 1384-1446.
Lorrain, Francois and White, Harrison C. (1971) Structural Equivalence of Individuals in Social Networks. Journal of Mathematical Sociology. 1: 49-80
Pattison, Philippa (1993) Algebraic Models for Social Networks. Cambridge University Press.
A <- matrix(c(
0, 1, 0, 0,
1, 0, 0, 0,
1, 1, 0, 1,
0, 0, 1, 0
), byrow = TRUE, ncol = 4)
rownames(A) <- letters[1:NCOL(A)]
colnames(A) <- rownames(A)
B <- matrix(c(
0, 1, 0, 0,
1, 0, 0, 0,
0, 0, 0, 1,
0, 0, 1, 0
), byrow = TRUE, ncol = 4)
rownames(B) <- letters[1:NCOL(B)]
colnames(B) <- rownames(B)
cmp <- compound_relation(list(A, B), comp = 2, matrices = TRUE, equate = TRUE)
cmp$compound_relations
cmp$compound_matrices
cmp$equated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.