For this independent analysis, I’ll be using the two datasets from the Social Network Analysis and Education companion site that were already included in the ‘data’ folder for this project. We also used them during the Unit 1 Case Study. Let’s start by reading each of the documents into R:
student-reported-friends, which will become student_friends and contains data reported by the students on their various social relationships with each other
teacher-reported-friends, which will become teacher_friends and contains data reported by the teacher on various social relationships between the students
One of the questions I had during the case study was whether there was any relationship between a student’s gender or achievement level with the accuracy of the teacher’s identification of that student’s friendships. With that in mind, I formalized the following questions:
Are there visible patterns between level of achievement and the accuracy of the teacher’s reporting?
Are there visible pattern between gender and the accuracy of the teacher’s reporting?
I wanted to calculate the difference in value between the number of friendships that the teacher said a student had, and the number of friendships that the students reported. First, I created four types of ‘count’, which can be explained using the example of Student ‘X’:
count_to: this value shows how many students said that Student ‘X’ was their friend
count_from: this value shows how many friends that Student ‘X’ said that they had
teacher_count_to: this value shows the teacher’s perception of how many students said that Student ‘X’ was their friend
teacher_count_from: this value shows the teacher’s perception of how many friends that Student ‘X’ said that they had
Then, I subtracted the student counts from the teacher counts. I decided to do this for both the ‘from’ counts (teacher_count_from - count_from) and the ‘to’ counts (teacher_count_to - count_to).
After scanning the resulting values, it was not surprising to see that the teacher had consistently under-counted the number of friendships each student had. It makes sense that on average, the values returned for the difference between the networks would be negative. Each individual student has a more comprehensive view of their relationships in the network than the teacher would have as an observer of that network.
## # A tibble: 27 × 11
## id gender achiev…¹ gende…² achie…³ count…⁴ count…⁵ teach…⁶ teach…⁷ from_…⁸
## <dbl> <chr> <fct> <dbl> <dbl> <int> <int> <int> <int> <int>
## 1 1 female high 1 1 13 16 3 4 -10
## 2 2 male average 0 2 6 7 5 5 -1
## 3 3 female average 1 2 4 4 5 5 1
## 4 4 male high 0 1 5 13 2 3 -3
## 5 5 female average 1 2 17 13 4 3 -13
## 6 6 female average 1 2 7 7 1 NA -6
## 7 7 female high 1 1 6 10 1 1 -5
## 8 8 female average 1 2 14 8 5 5 -9
## 9 9 female high 1 1 13 12 2 3 -11
## 10 10 male low 0 3 14 5 5 5 -9
## # … with 17 more rows, 1 more variable: to_diff <int>, and abbreviated variable
## # names ¹achievement, ²gender_num, ³achievement_num, ⁴count_from, ⁵count_to,
## # ⁶teacher_count_from, ⁷teacher_count_to, ⁸from_diff
I did notice that some those ‘from_diff’ and ‘to_diff’ values were more negative than others, and I was curious to start modeling those values in context with various student attributes to see if patterns would emerge.
I decided to create two bar graphs with the full_attributes data: one that would plot the to_diff values and one that would plot the from_diff values. Both graphs would use color to differentiate the students by gender, and both graphs would be faceted across achievement levels.
The resulting graphs are interesting. At a glance, we can see that in both plots, the difference between the teacher’s observed network and the student’s reported network is the least negative for low-achieving students. The high-achieving facet for both plots is extremely negative with nearly all students reporting at least 7 friendships that the teacher did not identify.
It’s harder to observe any visible patterns by gender. For one, the gender groups are not as evenly distributed as the achievement groups. While the achievement groups are split almost equally across the 27 students (low 10/average 9/high 8), the gender balance skews female (16 female, 11 male). Compounding that, though, is the fact that there is little-to-no teacher-reported data on three male students (#18, #19, and #20). That leaves only 8 male students to compare to the 16 female students when using the differences between student-reported and teacher-reported.
However, these plots also gave me a focal point as I began to build a sophisticated sociogram to represent both of these networks. I wanted to see if there would be any visible patterns within a sociogram along gender or achievement attributes, so I made sure to build those into my visualization. There were also several students who were outliers in the bar graphs (e.g. those the teacher most accurately observed friendships for, resulting in a difference of ‘0’ - student #10, #15, #23, and #24.)