I wanted to build on the work from my Unit 3 Independent Study, where I began to explore using data exported from our staff scheduling software (Deputy) to visualize interactions among BeAM staff. I decided to be a little more ambitious this time, and target a specific cohort: the student staff who participated in the BeAM Communities of Practice (CoPs) program this semester.
The BeAM CoPs are 6-week project rotations through different tool areas (3D Printer, Laser Cutter, Wood Shop, and Textiles) facilitated by experienced student staff alongside new student staff. Each CoP cohort meets for 3 hours each week in addition to their regular floor shifts with other BeAM staff. The two main goals for this program are to develop professional skills (e.g. teaching, tool operation, maintenance, etc.) and to build community among our student staff so that they can receive support from each other.
These program goals framed the formation of my research questions:
As I mentioned in my last independent study, we have 60+ student staff that work over the entire year. However, that would be an unmanageable amount of data, and so I decided to focus on the 22 student staff who participated in the CoPs this semester. This includes 5 experienced student staff and 17 new student staff.
Using records from our staff scheduling software (Deputy) and its “contact-tracing” function, I was able to generate an adjacency matrix that displayed their interactions with each other (i.e. the number of times they worked with a particular person, etc.) I then surveyed the same staff to ask them to recall from memory how many times they worked with each other this semester.
Only 20 students filled out the survey, so I ended up with 20 observations in my final dataset. To make it easier for them, and to be able to more cleanly compare the two datasets, I created a 5-point scale on the survey and converted the Deputy data to this scale as well:
0: 0 shared shifts (or if this is you!)
1: 1-5 shared shifts
2: 5-10 shared shifts
3: 10-15 shared shifts
4: 16+ shared shifts
These became the following adjacency matrices:
The DeputyShiftMatrix.csv document shows the number
of times each staff member worked with another specific staff member,
according to the Deputy scheduling software.
The SelfShiftMatrix.csv document shows the number of
times each staff member worked with another specific staff member,
according to the self-reported numbers from the survey.
Through the same survey, I collected information about how the CoP participants helped or were helped by others. These became the following adjacency matrices:
The IHelpedMatrix.csv document shows whether a
student said that they helped another student.
The TheyHelpedMatrix.csv document shows whether a
student said that they were helped by another student.
I created a de-identified nodes list with additional information about each student. I prefer to visualize sociograms with some type of name rather than a simple ID number, so I assigned color-based pseudonyms to each student before uploading the document to Posit.
DeidentifiedNodeList contains the ID number and
reference name (color-based pseudonym) of each staff member, along with
the following variables: Major, # of semesters working at BeAM, grade
year, which tool they learned during their first CoP rotation, and which
tool they learned during their second.My target audience for this case study is primarily the other full-time BeAM staff, and the student staff who participated in the CoP program this semester. If we have a better understanding of how CoP participants work together and perceive their work relationships, it might help us to improve the CoP program overall by reflecting on the structure and logistics.
Of course, the first step is to load the packages we’ll need.
There are a few steps I need to take to tidy the data. For each matrix, I need to read in the document and include the col_names argument to make sure R does not include column names. I’ll also read in the DeidentifiedNodeList that contains the information about the student staff participants.
There are also a few housekeeping things that I want to do to make my data look a little bit better when I get to creating visualizations. For example, reordering the ‘Grade_Year’ variable in my nodes list so that it will appear in sequential order in graph legends. I’ll also go ahead and simplify their majors into broader categories.
BeAM_staff_nodes$Grade_Year <- factor(BeAM_staff_nodes$Grade_Year,
levels = c("Sophomore", "Junior", "Senior"))
BeAM_staff_nodes <- BeAM_staff_nodes |>
mutate(Major = recode(BeAM_staff_nodes$Major,
"Anthropology" = "Humanities",
"Biomedical Engineering" = "Health Sciences",
"Economics" = "Math",
"Neuroscience" = "Health Sciences",
"Political Science" = "Social Sciences",
"Mathematics" = "Math",
"Statistics" = "Math",
"Chemistry" = "Natural Sciences",
"Biology" = "Natural Sciences",
"Journalism" = "Humanities",
"Physics" = "Natural Sciences",
"Information Science" = "Social Sciences",
"Global Studies" = "Humanities",
"Environmental Health" = "Health Sciences"))
Great, now I need to add labels to the matrices to make them easier to understand. There are 20 actors in this network, so that’s how many labels I need to add. Then I’ll restructure all the tibbles into more formal matrices so that I can analyze them.
I’ll convert the shift matrices into graphs so that I can extract edgelists to create network objects. It’s important to consider weight for these shift networks, which gives different categories (1-4) that represent how many shifts that pair worked together.
Now that we have the edgelists, we’ll create and plot simple shift networks.
The Deputy shift networks are undirected because reciprocity does not apply - if you were scheduled to work with someone, they worked with you. However, the self-reported shift network is a little different, because you might have said that you worked with someone, but they didn’t remember working with you. In this way, this could be viewed as a weighted, directed network where the number of times (‘weight’) that you think that you worked with someone might not be reciprocated.
deputy_shift_network <- tbl_graph(edges = deputy_shift_edges,
nodes = BeAM_staff_nodes,
directed = FALSE)
self_shift_network <- tbl_graph(edges = self_shift_edges,
nodes = BeAM_staff_nodes,
directed = TRUE)
plot(deputy_shift_network)
## Warning in Ops.factor(weights, 0): '<=' not meaningful for factors
plot(self_shift_network)
## Warning in Ops.factor(weights, 0): '<=' not meaningful for factors
Very cool so far, I’m excited to clean up and optimize these sociograms so that it’s easier to see what’s going on. For now, we’ll also apply the same treatment to the ‘help’ networks.
The ‘I Helped’ and ‘They Helped’ matrices are also directed - e.g. you might say that you helped someone, but they didn’t say that they helped you. However, they are not weighted like the shift matrices are - you might have worked multiple shifts together, while the survey just asked a yes/no binary of whether or not they helped/were helped by another staff member.
Let’s start by extracting edgelists from our matrices before we create our network objects. I’m also going to switch the ‘to’ and ‘from’ labels for the ‘they helped’ network so that it more accurately reflects the direction of the ‘help.’
Now we can create network objects with the edgelists and generate a simple plot for each. The ‘I Helped’ plot visualizes the sender perspective (e.g. how each actor sees their contributions to the network), while the ‘They Helped’ plot shows the receiver perspective (e.g. how actors perceived the help that they were receiving from others).
Fascinating. Again, eager to get to the analysis phase to start drawing out insights from these networks.
Let’s start with sophisticated sociograms of each shift network and see how they measure up. When I first ran the Deputy shift patterns, there’s a lot of information visually, so I will also include a visualization that removes any edges with a weight of ‘1’ (less than 5 shifts together.) I’ll do the same for the self-reported shift networks.
## Warning: Using the `size` aesthetic in this geom was deprecated in ggplot2 3.4.0.
## ℹ Please use `linewidth` in the `default_aes` field and elsewhere instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.
Overall, I’m somewhat surprised to see that the student staff were remarkably accurate in their recollections of who they worked with over the entire semester. However, I think two things made it easier on them: 1) the shifts are clustered into blocks of 5, so they have a flexible window in which they can be compared to the real schedule, and 2) they were part of consistent cohorts for the Communities of Practice, which makes it a little easier to remember who they spent the most time with. However, I take it as a sign that the Communities of Practice helped them remember who they worked with, as I’d be interested to see if they were able to achieve the same accuracy without that structured community.
Let’s see if there are any cliques in either of our shift networks, and how they differ. Remember that in the Deputy shift network, students have less control over what cliques they are in, since it depends on when they are scheduled. However, their personal relationships may influence what cliques emerge from their self-reported shifts.
clique_num(deputy_shift_network)
## [1] 14
clique_num(self_shift_network)
## Warning in clique_num(self_shift_network): At
## core/cliques/maximal_cliques_template.h:268 : Edge directions are ignored for
## maximal clique calculation.
## [1] 15
Interesting, we actually end up with the same maximum size of clique for both networks (14 vs. 15), which seems pretty high given that our network only contains 20 actors.
I’m very interested in the help networks, so that’s where I’ll spend the bulk of my analysis. First, I want to create sophisticated sociograms that will help me visualize the direction and frequency of help provided and received by our student staff.
In the ‘Sender View,’ we have information from people about who they feel that they helped this semester. That means that we can look at who has the most incoming arrows to determine which people are receiving the most help (according to the people helping them). At first glance, I notice that many of the nodes with arrows going to them are smaller (e.g. Rust, Emerald, Midnight), which means that they have fewer semesters of experience working at BeAM. That makes sense!
It’s also interesting to notice who’s not being helped - like Mandarin, who has no incoming arrows but has stated that they help others. Finally, I’m also noticing who is “embedded” - i.e., who has incoming and outgoing arrows. It’s cool to see several of the younger sophomores (Burgundy, Magenta, Vermillion) identifying reciprocal support.
In the ‘Receiver View,’ we have information from people about who they feel helped them this semester. Also remember that we flipped the ‘to’ and ‘from’ labels when making our edge_list, so this more accurately reflects the actual relationship (help going from sender to receiver, rather than identification of a helper going from sender to receiver.) That means that we can look at who is sending out the most arrows to know who is being identified by their peers as helpful.
It’s no surprise to see Khaki, Maroon, Lemon, and Lilac cited by many people as helpful - they are all seniors, have all been with BeAM since their sophomore year, and they are all facilitators of the staff Communities of Practice. Most of the staff members with the least experience (Vermillion, Mandarin, Emerald, Rose, Amber) have many incoming arrows, denoting that they feel that they ask for help from many different people. One notable exception is Magenta, a sophomore who only started a year ago, but they have started to take on a leadership role at BeAM and are quick to offer their help.
Let’s take a look and see if there are any cliques within the help networks.
clique_num(i_helped_network)
## Warning in clique_num(i_helped_network): At
## core/cliques/maximal_cliques_template.h:268 : Edge directions are ignored for
## maximal clique calculation.
## [1] 5
cliques(i_helped_network, min = 5, max = 6)
## Warning in cliques(i_helped_network, min = 5, max = 6): At
## core/cliques/cliquer_wrapper.c:57 : Edge directions are ignored for clique
## calculations.
## [[1]]
## + 5/20 vertices, from 1899d5a:
## [1] 1 7 8 10 18
##
## [[2]]
## + 5/20 vertices, from 1899d5a:
## [1] 14 15 16 17 19
##
## [[3]]
## + 5/20 vertices, from 1899d5a:
## [1] 3 14 15 16 19
##
## [[4]]
## + 5/20 vertices, from 1899d5a:
## [1] 1 6 7 8 10
##
## [[5]]
## + 5/20 vertices, from 1899d5a:
## [1] 1 6 8 10 15
##
## [[6]]
## + 5/20 vertices, from 1899d5a:
## [1] 1 6 10 15 16
clique_num(they_helped_network)
## Warning in clique_num(they_helped_network): At
## core/cliques/maximal_cliques_template.h:268 : Edge directions are ignored for
## maximal clique calculation.
## [1] 6
It’s pretty close again, with a max clique size of 5 vs. 6. That number makes sense, because the cohorts for the Communities of Practice were between 5 and 6 people. In fact, when I call up the cliques identified from the i_helped_network, I can see at a glance that clique #4 contains almost all of the members of the 3D Printer cohort, and clique #2 contains all of the members of the Wood Shop cohort. Since these are related to how staff help one another, I would say that this points towards the CoPs being a major network for circulating support.
I’m also curious about degrees of centrality within the help networks - is help spread out across the network, or is it concentrated on certain individuals?
i_helped_network <- i_helped_network |>
activate(nodes) |>
mutate(in_degree = centrality_degree(mode = "in"),
out_degree = centrality_degree(mode = "out")) |>
select(c("Ref_Name","BeAM_Semesters", "in_degree", "out_degree"))
i_helped_network |>
as_tibble() |>
arrange(desc(in_degree))
## # A tibble: 20 × 4
## Ref_Name BeAM_Semesters in_degree out_degree
## <chr> <dbl> <dbl> <dbl>
## 1 Plum 4 9 3
## 2 Cerulean 4 8 3
## 3 Almond 3 7 4
## 4 Magenta 3 7 5
## 5 Moss 3 7 7
## 6 Burgundy 4 7 5
## 7 Amber 3 6 5
## 8 Keppel 3 6 2
## 9 Midnight 3 6 9
## 10 Emerald 3 6 14
## 11 Rust 3 5 0
## 12 Rose 3 5 3
## 13 Aqua 3 4 4
## 14 Vermillion 3 4 3
## 15 Lilac 8 4 7
## 16 Orchid 4 3 0
## 17 Lemon 5 2 12
## 18 Mandarin 3 2 3
## 19 Maroon 5 2 6
## 20 Khaki 5 1 6
they_helped_network <- they_helped_network |>
activate(nodes) |>
mutate(in_degree = centrality_degree(mode = "in"),
out_degree = centrality_degree(mode = "out")) |>
select(c("Ref_Name","BeAM_Semesters", "in_degree", "out_degree"))
they_helped_network |>
as_tibble() |>
arrange(desc(out_degree))
## # A tibble: 20 × 4
## Ref_Name BeAM_Semesters in_degree out_degree
## <chr> <dbl> <dbl> <dbl>
## 1 Lilac 8 8 14
## 2 Maroon 5 1 14
## 3 Lemon 5 6 12
## 4 Magenta 3 7 7
## 5 Plum 4 3 7
## 6 Midnight 3 5 7
## 7 Khaki 5 3 7
## 8 Almond 3 5 6
## 9 Moss 3 7 6
## 10 Aqua 3 5 6
## 11 Emerald 3 15 6
## 12 Burgundy 4 8 6
## 13 Rust 3 4 5
## 14 Keppel 3 7 5
## 15 Mandarin 3 6 3
## 16 Orchid 4 0 3
## 17 Vermillion 3 5 3
## 18 Amber 3 10 2
## 19 Cerulean 4 12 2
## 20 Rose 3 6 2
I’ve sorted the two networks by in_degree for the ‘I helped’ network (who do most staff feel has received help this semester?) and by out_degree for the ‘they helped me’ network (who do most staff feel has provided help?) However, that’s not the full picture, as it’s helpful to compare in_degree and out_degree for similar values, which could imply that a staff member participates in more ‘reciprocal’ relationships of professional support.
If I compare in_degree from ‘I helped’ and ‘out_degree’ from ‘they helped,’ I see that Magenta clearly embodies this reciprocal trend (in_degree: 7 / out_degree: 7) Other staff members that fall into this category are Plum, Almond, Midnight, and Moss - all staff members who only recently started working at BeAM, but have rapidly become prominent collaborators with other staff. It’s fun to see something that I had noticed anecdotally reflected in a sociogram!
I’m not surprised to see a high out_degree for Lilac, Maroon, and Lemon from the ‘they helped me’ graph, as again, they are all student facilitators for the Communities of Practice.
Let’s return to the original research questions:
Between the sociograms and the clique analysis, it seemed like the shift networks demonstrated that staff are interacting with each other beyond the Communities of Practice, which I take as a good sign. I wouldn’t want the CoPs to become insulated from one another or prevent staff from building relationships with peers outside of their CoP cohort. However, the CoP model does seem to have impacted the help and support that staff receive from one another, with many of those collaborations falling along CoP lines. That makes sense, and I’m glad to see that they have access to peer support through the CoPs.
The CoP participants were pretty accurate in their perceptions of work, which as I mentioned earlier, could be because 1) the shifts are clustered into blocks of 5, so they have a flexible window in which they can be compared to the real schedule, and 2) they were part of consistent cohorts for the Communities of Practice, which makes it a little easier to remember who they spent the most time with. However, it’s nice to see that they do have an awareness of those around them, and of their relationships with their teammates.
As for who “helps others” and “gets help from others,” it’s clear that experience plays a role in how much support you provide or receive. However, it’s heartening to see actors in these networks that both provide and receive help, which I interpret as becoming an “embedded” community member. Lemon, Maroon, Lilac, and Khaki will be graduating as seniors in just a few days, but they’ve helped grow a strong community of staff. Almond, Magenta, Moss, Midnight, and Plum all have the potential to be great facilitators of the next round of Communities of Practice.
There were some limitations to my analysis - if I had more time, I would love to crunch some numbers on reciprocity, comparing centrality across node attributes, and more. However, I feel like I can present this information to my team to start a conversation about peer networks among our student staff, which is incredibly exciting and work that I want to continue in the future.