zone_sample | R Documentation |
Second-zone multilevel sampling considering a second-mode focal actor
zone_sample(A, X, ego = TRUE, core = FALSE)
A |
A symmetric matrix object. |
X |
X an incidence matrix object. |
ego |
Whether to add or not ego into the subgraph. |
core |
Whether to add actors at distance one from ego |
This function return a list of second-zone subgraphs using as a focal actor the second-mode of the multilevel network.
Alejandro Espinosa-Rada
Espinosa-Rada, A. (2021). A Network Approach for the Sociological Study of Science: Modelling Dynamic Multilevel Networks. [PhD](https://research.manchester.ac.uk/en/studentTheses/a-network-approach-for-the-sociological-study-of-science-and-know). The University of Manchester.
A <- matrix(c(
0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 0, 0,
0, 1, 0, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
), byrow = TRUE, ncol = 8)
colnames(A) <- c("1", "2", "3", "4", "5", "6", "7", "8")
rownames(A) <- c("1", "2", "3", "4", "5", "6", "7", "8")
X <- matrix(c(
1, 0, 0, 0,
1, 0, 0, 0,
1, 0, 1, 0,
0, 1, 1, 0,
0, 1, 1, 1,
0, 1, 0, 0,
0, 0, 0, 0,
0, 0, 0, 1
), byrow = TRUE, ncol = 4)
colnames(X) <- c("a", "b", "c", "d")
rownames(X) <- c("1", "2", "3", "4", "5", "6", "7", "8")
set.seed(18051889)
zone_sample(A, X, core = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.