This lab will examine how to measure individuals’ perceived structure of social networks (cognitive social structures or CSS) and how to analyze these perceptions, drawing on notions of structural equivalence and quadratic assignment procedure discussed in class.
We will be using the Krackhardt’s Advice and Friendship data sets. 1 This is the data set reported in Krackhardt, D. (1987) “Cognitive Social Structures,” Social Networks, 9: 109—34. Reading that paper before carrying out the analysis is strongly recommended. The 21 respondents are managers in a company.
There are four sections to this lab below: CSS analysis, visualization, structural equivalence, and differences and correlation. We are not looking for an essay response to every question, but you should succinctly convey that you understand how to interpret and make inferences based on the outputs from these analyses.
This assignment is designed to use the sna package in the R statistical programming language.2 See Butts, Carter T., sna: Tools for Social Network Analysis, R package version 2.4.; see also ?? sna for documentation and Butts, Carter T. (2008). “Social Network Analysis with sna.” Journal of Statistical Software, 24(6). You are provided the RData file. krackhardt_css_data.RData
Our visualization for this exercise will be done using ggnet2,3 Moritz Marbach and Francois Briatte, with help from Heike Hoffmann, Pedro Jordano and Ming-Yu Liu; see ?? ggnet2. a visualization package which applies the visualization framework developed in ggplot2, an up-and-coming visualization framework created by RStudio that is well on its way to being recognized as the professional standard in R visualization.4 See ?? ggplot2, and the tidyverse website.
Because you will not be collecting data in this lab, feel free to knit early and often to see how your responses are being formatted! Please do your best to maintain the formatting provided by this assignment. It makes grading significantly easier when answers are easy to read.
Download all the files for this lab and save them in the same folder. Open the CSS_Lab.R file in RStudio (File > Open). After the R script is loaded in the editor, set the working directory so that R knows where to find the RData file you are going to load (Session > Set Working Directory > To Source File Location).
The data file krackhardt_css_data.RData consists of two CSS data objects:
● advice_nets: respondents’ perceptions about their own and others’ advice ties within the organization
● friendship_nets: respondents’ perceptions about their own and others’ friendship ties within the organization
We’ll begin by viewing an example response matrix. Notice that this is a binary sociomatrix.
Advice Matrix Table
| V1 | V2 | V3 | V4 | V5 | V6 | V7 | V8 | V9 | V10 | V11 | V12 | V13 | V14 | V15 | V16 | V17 | V18 | V19 | V20 | V21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---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| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 13 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 |
| 14 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 15 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 |
| 16 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 17 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 |
| 18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 19 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 |
| 20 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 |
| 21 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
The advice_nets and friendship_nets objects are R lists that each contain 21 networks, one for each respondent’s perception about what the advice and friendship networks look like. Let’s view the characteristics of a sample friendship network. We’ll visualize the ties within that network in the next Part.
Individual Respondent Network
| V1 | V2 | V3 | V4 | V5 | V6 | V7 | V8 | V9 | V10 | V11 | V12 | V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 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| V12 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| V13 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| V14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| V15 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| V16 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| V17 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| V18 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| V19 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| V20 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| V21 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 |
Next, we’ll aggregate the individual observations of each actor within the network into a single network. There are multiple ways to do so. Each presents a different manner of combining the 21 responses into a single aggregated network. These include four locally aggregated structures (LAS) and one consensus aggregated structure. First, we calculate the four LAS: row, column, intersection, and union.
Friendship, Column Matrix
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 2 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 4 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
| 6 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 7 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 8 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 10 | 0 | 0 | 0 | 0 | 0 | 0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0 | 0 | 0 |
Conceptually, how do these two networks differ from one another? What are the pros and cons of using this method?
ANSWER: The Column LAS represents the connections to the observer over who is related to them; the Row LAS represents the connections to the observer over who are they related to. The appropriateness of this method depends on the research question. They are good for clearly seing self-perceptions of centrality. However, for a better overview of the actual relations, those two need to be combined.
Friendship Intersection
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 9 | 0 |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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 21 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
What information does the ‘intersection’ method capture? What are the pros and cons of using this method?
ANSWER: Intersection LAS captures relationsthips between pairs that are perceived by both members of those pairs. It has the advantage of accuracy based on the self-reporting of relationships. The con is that it only shows relationships in which the pair members are willing and able to report.
Friendship Union
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 2 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 4 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
| 6 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 7 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |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 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 20 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 21 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
What kind of information does the union method capture? What are the pros and cons of using this method?
ANSWER: Union LAS captures relationsthips between pairs that are perceived by either member of those pairs. Therefore, it has a high recall, but might have a low precision. This might lead to innacuracy in the representation of actual relationships, but captures all possible relationships perceived by the targets.
Friendship Median
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
| 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 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| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 19 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 20 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 21 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
What kind of information does the median measure capture? What are the pros and cons of using this method?
ANSWER: Median LAS captures relationsthips between pairs that are perceived by at least the median of all members of the network. Therefore, it has an even higher recall than Union LAS. The advantage is that is finds relationships perceived by the the network as a whole. This might lead to innacuracy in the representation of actual relationships, but the fact that there is a threshold of consesus can neutralize that.
Finally, we’ll also load the data for our advice network for later analysis.
ad_column <- consensus(advice_nets, mode="digraph", diag=FALSE, method="OR.col")
ad_row <- consensus(advice_nets, mode="digraph", diag=FALSE, method="OR.row")
ad_intersection <- consensus(advice_nets, mode="digraph", diag=FALSE, method="LAS.intersection")
ad_union <- consensus(advice_nets, mode="digraph", diag=FALSE, method="LAS.union")
ad_median <- consensus(advice_nets, mode="digraph", diag=FALSE, method="central.graph")
First, we’re going to define the position of the nodes on the network so that it is easier to compare edges across graphs.
Base Graph Structure
Using our initial node placement as a template, we will now visualize the ties for aggregated networks.
# If you pass ggnet2 the mode value of a matrix, it will use the first two vectors to position the nodes on their x and y axes. Thus, if we call baseLayout throughout the rest of the visualizations, the nodes will remain in place but the edges drawn between the visualizations will change.
ggnet2(fr_union_net, mode = baseLayout, label = TRUE, arrow.size = 8, edge.color="red", arrow.gap = 0.03) + theme(panel.background = element_rect(fill = "#fffff8"))
Friendship, Union.
Describe what this network shows in your own words.
ANSWER: This graph shows that not only the number of relationships vary a lot across nodes, but some relationships are not mutual. Nodes 2, 14 and 21 have a high degree of mutual connectivity. Node 11 thinks that it has a lot of relationships, but they are not mutual. Some outliers: 18 has no friends and 10 only considers one other node as a friend, but that is not reciprocal.
Friendship, Row.
Describe what this network shows in your own words.
ANSWER: This graph shows more isolated nodes and less reciprocity in the relationships. But 2, 14 and 19 still have a high in-degree.
What are the relevant similiarities and differences between the two networks? What do they mean?
ANSWER: Since the Row LAS represents the connections to the observer over who are they related to, it is only natural that is shows fewer connections than the Union graphs, since in the Row, the edges represent perceived friendships by only one side of the pairs. Nodes are, therefore, more isolated, and some information of perceived relationship is lost.
Choose two of the aggregated advice networks calculated above to visualize.
# Feel free to edit this portion of the code if you would like to plot different aggregated measures.
# Plot the ad_intersection network.
ad_union_net <- igraph::graph.adjacency(ad_union) # make an igraph network object from the advice union adjacency matrix
ggnet2(ad_union_net, mode = baseLayout, label = TRUE, arrow.size = 8, edge.color="pink", arrow.gap = 0.03) + theme(panel.background = element_rect(fill = "#fffff8")) # plots the advice intersection network
Advice, Union
Describe what this network shows in your own words.
ANSWER: This network shows that some node have an connectivity when the perspective of all observers are accounted for when it comes to advice-seeking. High recall, but is it low precision? Node 18 is a particularly striking example, since he is seeked by many other nodes, despite having no friendships according to the other data. It seems that there is a strong percepction that nodes feel that they are requesting and providing advice.
Advice, Median.
Describe what this network shows in your own words.
ANSWER: Here we have a more “realistic” network, with a percepction threshold that might remove some. Low recall, high precision. 18 and 10 are still relatively isolated; other users don’t seem to see the relationships that either them or their pairs see.
What are the relevant similiarities and differences between the two networks? What do they mean?
ANSWER: I purposely chose the two conceptual extremes of visualizations to see if the percepctions of individual nodes are clearly seen by the network as a whole. Clearly they are not. Connections in the union network are much more prevalent. I wonder if what we can learn by getting a closer look at one of the nodes that changed drastically, such as 18.
Next, we’ll plot two of the individual self-report networks. Choose two respondents (by number, 1—21) from either advice_nets or friendship_nets, or visualize both of a single respondent’s self-reports.
Respondent Network 1: node 18.
Respondent Network 2: node 20
What respondents did you choose to visualize? Why?
ANSWER: I chose to visualize nodes 18 and 20, because they are the ones that change most drastically when looking at union and median graphs of advice. They are isolated when it comes to median perception, but very connected when it comes to union perception. I was hoping that their individual perceptions might show if their perceptions are correct or rest of the network seems blind to their relationships.
What do their networks show? Can you draw any conclusions about each actor’s role in the network?
ANSWER: For 18, it shows that it has a very good view of the high connectivity of the rest of the network, sometimes reporting relationships that the median network doesn’t. Also, its percepction of its own connectivity - particularly in-degree connectivity - is larger than the medium. That means that it has relationships that are “invisible” to other people. That mixture of high percepetion of network and high connectivity unreported by the rest of the network makes me believe that 18 is probably the leader, president or CEO of the company. As for 20, it doesn’t have a high confidence in its relationships: the union graph shows that a lot of nodes say they seek 20 for advice, but 20 itself doesn’t report that. It only sees one node as requesting advice from it. 20 also doesn’t notice a lot of connections going around the network. I wonder if 20 is some sort of isolated savant.
Finally, we’re going to plot the intersection of two networks.
Intersection of Friendship, Union, and Advice, Union.
What does this network show? Why might this visualization be useful?
ANSWER: This network shows which relationships are marked both by friendship and advice-seeking. We see how two forms of connection are related to each other. We see that there is strong mutuality in these relationships, possibly meaning that friends look for advice from friends. But some nodes are now more of completely isolated, such as 13. 13 doesn’t mix friendship with work advice.
In this section, we will compute the structural equivalence among the actors using the locally aggregated structure (LAS). Based upon the exploratory visualizations you created in Part II, choose one LAS structure for both the AD and FR relation type to compute structural equivalence (e.g. ad_union and fr_union).
Outline your rationale for choosing your networks.
ANSWER: I would like to choose aggregation by median. I want to see only relationships that there is a network consensus about, to prevent spurious correlations.
Now, we’ll generate the matrices used to evaluate structural equivalence. Note that we’ll be using the Euclidean distance method.5 Hint: the way you interpret results using the Pearson correlation method and the Euclidean distance method are inverse. You should review the readings or slides from class to make sure you understand how to interpret results.
Advice SEM
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | NA | 4.58 | 2.24 | 2.45 | 2.83 | 3.32 | 3.87 | 2.24 | 3.00 | 2.24 | 3.32 | 3.16 | 2.65 | 4.36 | 2.65 | 1.41 | 3.00 | 4.36 | 3.00 | 2.83 | 4.00 |
| 2 | 4.58 | NA | 4.47 | 4.12 | 4.12 | 4.47 | 3.16 | 4.24 | 4.47 | 4.47 | 3.46 | 4.58 | 4.90 | 2.83 | 4.69 | 4.58 | 4.69 | 2.83 | 4.47 | 4.12 | 3.87 |
| 3 | 2.24 | 4.47 | NA | 3.00 | 1.73 | 2.83 | 3.16 | 2.45 | 2.45 | 2.45 | 2.45 | 3.00 | 2.00 | 3.74 | 2.00 | 2.65 | 2.45 | 4.00 | 2.45 | 1.73 | 3.32 |
| 4 | 2.45 | 4.12 | 3.00 | NA | 3.46 | 3.32 | 3.87 | 1.73 | 3.32 | 2.65 | 3.61 | 3.16 | 3.32 | 4.12 | 3.00 | 2.45 | 3.00 | 4.12 | 3.61 | 3.16 | 3.46 |
| 5 | 2.83 | 4.12 | 1.73 | 3.46 | NA | 3.32 | 3.61 | 3.00 | 2.24 | 3.00 | 2.24 | 3.46 | 2.24 | 3.32 | 2.65 | 3.16 | 3.00 | 3.61 | 1.73 | 2.00 | 3.74 |
| 6 | 3.32 | 4.47 | 2.83 | 3.32 | 3.32 | NA | 3.46 | 2.83 | 3.46 | 3.16 | 3.74 | 1.73 | 3.46 | 4.00 | 3.16 | 3.32 | 1.41 | 4.90 | 3.74 | 3.00 | 2.65 |
| 7 | 3.87 | 3.16 | 3.16 | 3.87 | 3.61 | 3.46 | NA | 3.74 | 3.74 | 3.74 | 3.16 | 3.61 | 3.74 | 2.83 | 3.74 | 4.12 | 3.74 | 3.74 | 4.00 | 3.61 | 3.32 |
| 8 | 2.24 | 4.24 | 2.45 | 1.73 | 3.00 | 2.83 | 3.74 | NA | 2.83 | 2.45 | 3.46 | 2.65 | 2.83 | 4.00 | 2.45 | 2.24 | 2.45 | 4.47 | 3.16 | 2.65 | 3.32 |
| 9 | 3.00 | 4.47 | 2.45 | 3.32 | 2.24 | 3.46 | 3.74 | 2.83 | NA | 2.83 | 3.16 | 3.32 | 1.41 | 3.74 | 2.00 | 3.00 | 3.16 | 4.24 | 2.00 | 2.65 | 3.61 |
| 10 | 2.24 | 4.47 | 2.45 | 2.65 | 3.00 | 3.16 | 3.74 | 2.45 | 2.83 | NA | 3.16 | 2.65 | 2.83 | 4.00 | 2.45 | 2.24 | 2.83 | 4.24 | 3.16 | 2.65 | 3.87 |
| 11 | 3.32 | 3.46 | 2.45 | 3.61 | 2.24 | 3.74 | 3.16 | 3.46 | 3.16 | 3.16 | NA | 3.87 | 3.16 | 2.83 | 3.16 | 3.32 | 3.46 | 3.16 | 3.16 | 2.65 | 3.87 |
| 12 | 3.16 | 4.58 | 3.00 | 3.16 | 3.46 | 1.73 | 3.61 | 2.65 | 3.32 | 2.65 | 3.87 | NA | 3.32 | 4.36 | 3.00 | 3.16 | 1.73 | 5.00 | 3.61 | 3.16 | 2.83 |
| 13 | 2.65 | 4.90 | 2.00 | 3.32 | 2.24 | 3.46 | 3.74 | 2.83 | 1.41 | 2.83 | 3.16 | 3.32 | NA | 4.00 | 2.00 | 3.00 | 3.16 | 4.47 | 2.00 | 2.65 | 3.87 |
| 14 | 4.36 | 2.83 | 3.74 | 4.12 | 3.32 | 4.00 | 2.83 | 4.00 | 3.74 | 4.00 | 2.83 | 4.36 | 4.00 | NA | 4.00 | 4.36 | 4.00 | 3.16 | 3.74 | 3.32 | 4.12 |
| 15 | 2.65 | 4.69 | 2.00 | 3.00 | 2.65 | 3.16 | 3.74 | 2.45 | 2.00 | 2.45 | 3.16 | 3.00 | 2.00 | 4.00 | NA | 2.65 | 2.83 | 4.47 | 2.00 | 1.73 | 3.61 |
| 16 | 1.41 | 4.58 | 2.65 | 2.45 | 3.16 | 3.32 | 4.12 | 2.24 | 3.00 | 2.24 | 3.32 | 3.16 | 3.00 | 4.36 | 2.65 | NA | 3.00 | 4.36 | 3.32 | 2.83 | 4.00 |
| 17 | 3.00 | 4.69 | 2.45 | 3.00 | 3.00 | 1.41 | 3.74 | 2.45 | 3.16 | 2.83 | 3.46 | 1.73 | 3.16 | 4.00 | 2.83 | 3.00 | NA | 4.69 | 3.46 | 2.65 | 3.00 |
| 18 | 4.36 | 2.83 | 4.00 | 4.12 | 3.61 | 4.90 | 3.74 | 4.47 | 4.24 | 4.24 | 3.16 | 5.00 | 4.47 | 3.16 | 4.47 | 4.36 | 4.69 | NA | 4.00 | 3.87 | 4.12 |
| 19 | 3.00 | 4.47 | 2.45 | 3.61 | 1.73 | 3.74 | 4.00 | 3.16 | 2.00 | 3.16 | 3.16 | 3.61 | 2.00 | 3.74 | 2.00 | 3.32 | 3.46 | 4.00 | NA | 2.24 | 4.12 |
| 20 | 2.83 | 4.12 | 1.73 | 3.16 | 2.00 | 3.00 | 3.61 | 2.65 | 2.65 | 2.65 | 2.65 | 3.16 | 2.65 | 3.32 | 1.73 | 2.83 | 2.65 | 3.87 | 2.24 | NA | 3.46 |
| 21 | 4.00 | 3.87 | 3.32 | 3.46 | 3.74 | 2.65 | 3.32 | 3.32 | 3.61 | 3.87 | 3.87 | 2.83 | 3.87 | 4.12 | 3.61 | 4.00 | 3.00 | 4.12 | 4.12 | 3.46 | NA |
| # Fri | endship | SEM |
Friendship SEM
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 2 | 1.73 | NA | 2.00 | 2.45 | 2.45 | 1.73 | 1.73 | 2.00 | 2.00 | 1.73 | 1.73 | 2.24 | 1.73 | 2.00 | 1.73 | 1.73 | 1.41 | 1.41 | 2.24 | 1.73 | 1.41 |
| 3 | 1.00 | 2.00 | NA | 2.00 | 2.00 | 1.00 | 1.00 | 1.41 | 1.41 | 1.00 | 1.00 | 1.73 | 1.00 | NA | 1.00 | 1.00 | 1.41 | 1.41 | 1.73 | 1.00 | 2.00 |
| 4 | 1.73 | 2.45 | 2.00 | NA | 2.45 | 1.73 | 1.73 | 1.41 | 2.00 | 1.73 | 1.73 | 1.00 | 1.73 | 2.00 | 1.73 | 1.73 | 2.00 | 2.00 | 2.24 | 1.73 | 2.45 |
| 5 | 1.73 | 2.45 | 2.00 | 2.45 | NA | 1.73 | 1.73 | 2.00 | 1.41 | 1.73 | 1.73 | 2.24 | 1.73 | 2.00 | 1.73 | 1.73 | 2.00 | 2.00 | 1.00 | 1.73 | 2.45 |
| 6 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 7 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 8 | 1.00 | 2.00 | 1.41 | 1.41 | 2.00 | 1.00 | 1.00 | NA | 1.41 | 1.00 | 1.00 | 1.00 | 1.00 | 1.41 | 1.00 | 1.00 | 1.41 | 1.41 | 1.73 | 1.00 | 2.00 |
| 9 | 1.00 | 2.00 | 1.41 | 2.00 | 1.41 | 1.00 | 1.00 | 1.41 | NA | 1.00 | 1.00 | 1.73 | 1.00 | 1.41 | 1.00 | 1.00 | 1.41 | 1.41 | 1.00 | 1.00 | 2.00 |
| 10 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 11 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 12 | 1.41 | 2.24 | 1.73 | 1.00 | 2.24 | 1.41 | 1.41 | 1.00 | 1.73 | 1.41 | 1.41 | NA | 1.41 | 1.73 | 1.41 | 1.41 | 1.73 | 1.73 | 2.00 | 1.41 | 2.24 |
| 13 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 14 | 1.00 | 2.00 | NA | 2.00 | 2.00 | 1.00 | 1.00 | 1.41 | 1.41 | 1.00 | 1.00 | 1.73 | 1.00 | NA | 1.00 | 1.00 | 1.41 | 1.41 | 1.73 | 1.00 | 2.00 |
| 15 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 16 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 17 | 1.00 | 1.41 | 1.41 | 2.00 | 2.00 | 1.00 | 1.00 | 1.41 | 1.41 | 1.00 | 1.00 | 1.73 | 1.00 | 1.41 | 1.00 | 1.00 | NA | 1.41 | 1.73 | 1.00 | 1.41 |
| 18 | 1.00 | 1.41 | 1.41 | 2.00 | 2.00 | 1.00 | 1.00 | 1.41 | 1.41 | 1.00 | 1.00 | 1.73 | 1.00 | 1.41 | 1.00 | 1.00 | 1.41 | NA | 1.73 | 1.00 | 1.41 |
| 19 | 1.41 | 2.24 | 1.73 | 2.24 | 1.00 | 1.41 | 1.41 | 1.73 | 1.00 | 1.41 | 1.41 | 2.00 | 1.41 | 1.73 | 1.41 | 1.41 | 1.73 | 1.73 | NA | 1.41 | 2.24 |
| 20 | NA | 1.73 | 1.00 | 1.73 | 1.73 | NA | NA | 1.00 | 1.00 | NA | NA | 1.41 | NA | 1.00 | NA | NA | 1.00 | 1.00 | 1.41 | NA | 1.73 |
| 21 | 1.73 | 1.41 | 2.00 | 2.45 | 2.45 | 1.73 | 1.73 | 2.00 | 2.00 | 1.73 | 1.73 | 2.24 | 1.73 | 2.00 | 1.73 | 1.73 | 1.41 | 1.41 | 2.24 | 1.73 | NA |
Take a moment to compare the structural equivalence matrices (SEM) for the advice and friendship networks that you analyzed. You might want to refer to previous visualizations. Notice that it’s challenging to decode this information visually in matrix form, even for a relatively small network. We’ll search the matrix programmatically to understand more about it.
Next, we will identify the two nodes with the highest and lowest SEM Euclidean distance in each matrix as well as the mean value of distance across both networks.
## [1] "Friendship SEM"
## row col
## 3 3 1
## 8 8 1
## 9 9 1
## 14 14 1
## 17 17 1
## 18 18 1
## 1 1 3
## 6 6 3
## 7 7 3
## 10 10 3
## 11 11 3
## 13 13 3
## 15 15 3
## 16 16 3
## 20 20 3
## 12 12 4
## 19 19 5
## 3 3 6
## 8 8 6
## 9 9 6
## 14 14 6
## 17 17 6
## 18 18 6
## 3 3 7
## 8 8 7
## 9 9 7
## 14 14 7
## 17 17 7
## 18 18 7
## 1 1 8
## 6 6 8
## 7 7 8
## 10 10 8
## 11 11 8
## 12 12 8
## 13 13 8
## 15 15 8
## 16 16 8
## 20 20 8
## 1 1 9
## 6 6 9
## 7 7 9
## 10 10 9
## 11 11 9
## 13 13 9
## 15 15 9
## 16 16 9
## 19 19 9
## 20 20 9
## 3 3 10
## 8 8 10
## 9 9 10
## 14 14 10
## 17 17 10
## 18 18 10
## 3 3 11
## 8 8 11
## 9 9 11
## 14 14 11
## 17 17 11
## 18 18 11
## 4 4 12
## 8 8 12
## 3 3 13
## 8 8 13
## 9 9 13
## 14 14 13
## 17 17 13
## 18 18 13
## 1 1 14
## 6 6 14
## 7 7 14
## 10 10 14
## 11 11 14
## 13 13 14
## 15 15 14
## 16 16 14
## 20 20 14
## 3 3 15
## 8 8 15
## 9 9 15
## 14 14 15
## 17 17 15
## 18 18 15
## 3 3 16
## 8 8 16
## 9 9 16
## 14 14 16
## 17 17 16
## 18 18 16
## 1 1 17
## 6 6 17
## 7 7 17
## 10 10 17
## 11 11 17
## 13 13 17
## 15 15 17
## 16 16 17
## 20 20 17
## 1 1 18
## 6 6 18
## 7 7 18
## 10 10 18
## 11 11 18
## 13 13 18
## 15 15 18
## 16 16 18
## 20 20 18
## 5 5 19
## 9 9 19
## 3 3 20
## 8 8 20
## 9 9 20
## 14 14 20
## 17 17 20
## 18 18 20
## [1] "Min. Value:"
## [1] 1
## row col
## 4 4 2
## 5 5 2
## 2 2 4
## 5 5 4
## 21 21 4
## 2 2 5
## 4 4 5
## 21 21 5
## 4 4 21
## 5 5 21
## [1] "Max Value:"
## [1] 2.44949
## [1] "Mean Value:"
## [1] 1.482616
## [1] "Advice SEM"
## row col
## 16 16 1
## 17 17 6
## 13 13 9
## 9 9 13
## 1 1 16
## 6 6 17
## [1] "Min. Value:"
## [1] 1.414214
## row col
## 18 18 12
## 12 12 18
## [1] "Max. Value:"
## [1] 5
## [1] "Mean Value:"
## [1] 3.246036
How do you interpret high and low values in this matrix, calculated using Euclidean distance?
ANSWER: The higher the value in the matrix, the less structurally equivalent they are.
Which network has the smallest minimum distance between nodes? Why might that be? You may want to refer to your earlier visualizations for more insight into the network.
ANSWER: The friendship network (1). Because since a big part of the network can’t really agree there is a relationships, relationships are sparse, and there is similarity among nodes that have no connections.
Which network has the greatest maximum distance between nodes? Why might that be?
ANSWER: The advice network (5). Because 18 is isolated from the rest of the nodes.
Which network exhibits more structural equivalence?
ANSWER: The friednship network - mean value of 1.482616.
Now we will perform the QAP analysis on the advice networks by looping over every network in the list of networks and compare it against the median network we created in Part I. Let’s take a look at one of those values.
##
## QAP Test Results
##
## Estimated p-values:
## p(f(perm) >= f(d)): 0
## p(f(perm) <= f(d)): 1
##
## Test Diagnostics:
## Test Value (f(d)): 0.280373
## Replications: 1000
## Distribution Summary:
## Min: -0.1519819
## 1stQ: -0.03488578
## Med: 0.004146261
## Mean: 0.002020516
## 3rdQ: 0.04017584
## Max: 0.2083139
The summary of the QAP test includes a number of values:
Estimated p-values: These estimate the probability of observing the test statistic (graph correlation in this instance) value. Qaptest will show both the probability of observing a value higher than or lower than the value observed. If the correlation is substantially higher than zero, these values will often be 1 and 0. This means that, during the QAP process no value was observed that was higher (or potentially lower) than the observed value. To confirm this, look at the Min/Max values in the distribution summary (see below).
Test value: This is the observed correlation between the two graphs.
Distribution summary: This summarizes the distribution of values calculated during the QAP process.
Look over the results that R printed to the console. Each result should begin with the respondent’s index number. Below, we’ll summarize the results of the correlation between the consensus network and each of our 21 respondents.
| 1 | 0.28 |
| 2 | 0.52 |
| 3 | 0.49 |
| 4 | 0.69 |
| 5 | 0.49 |
| 6 | 0.49 |
| 7 | 0.56 |
| 8 | 0.54 |
| 9 | 0.53 |
| 10 | 0.55 |
| 11 | 0.45 |
| 12 | 0.47 |
| 13 | 0.62 |
| 14 | 0.49 |
| 15 | 0.58 |
| 16 | 0.70 |
| 17 | 0.47 |
| 18 | 0.39 |
| 19 | 0.49 |
| 20 | 0.46 |
| 21 | 0.48 |
Examining the results from above, which respondent’s perceptions were the most/least “accurate” when compared to the median response (assuming the consensus is the ground truth)?6 Hint: look for the strongest correlation between the respondent’s network and the median network.
ANSWER: Respondent 16’s perception is the most accurate (0.70) and respondent 1’s perception is the least accurate (0.28).
Let’s plot the QAP distribution for our advice networks.
Advice QAP
Based on the results of the QAP test, is the most accurate observer’s correlation with the consensus network significant or spurious? How does the graph above help you make that determination? Where would you draw a vertical line?
ANSWER: I believe it’s significant, since the QAP replications are more tense around 0, and the maximum value is around 0.3. The vertical line representing respondent 16’s perception would not even be inside the present chart.
We will repeat this process for friendship networks. Take a look at your console output to answer the following question.
Are the results for the friendship network very similar or different from those you saw in the advice networks? Give some possible reasons why individuals have more precise representations of one kind of relation structure than another kind of relation structure.
ANSWER: No, their are less precise. I believe this is because there are friendship relationships that are not clear to people outside the pairs.
Next, we will investigate the correlation between various centrality measures and the union consensus network.
## Correlation with Degree Centrality: 0.214675
## Correlation with Betweennesss Centrality: 0.1479718
## Correlation with Closeness Centrality: 0.3286186
## Correlation with Eigenvector Centrality: 0.08114582
Which centrality score of individuals in the consensus network are most highly correlated with their accuracy in predicting the consensus network? Based on the readings, suggest a rationale why individuals’ embeddedness or patterning of ties might result in different perceptions.
ANSWER: The closeness centrality (0.3286186). Makes sense. The closer you are to other nodes, the better you can act as “pulse takers” of the network, gathering information from your neighbors and their neighbors.
Next, we’ll run the QAP test on the individual advice/friendship networks. Take a look at your console output to answer this question.
## Proportion of draws which were >= observed value: 0
## Proportion of draws which were <= observed value: 1
Which individual sees the two networks as the most similar? Which sees them as the least similar?
ANSWER: The one who sees it the most similar is 16 (0.4690604); the one who sees it the least similar is 18 (0.03050252).
After knitting your file to RPubs, copy the URL and paste it into the comment field of the Lab 2 Assignment on Canvas. Save this .Rmd file and submit it in the file portion of your Canvas assignment. Make sure to review your file and its formatting. Run spell check (built into RStudio) and proofread your answers before submitting.