Recruiting Markets and Campus Centrality in the UNC System

ECI 586: Introduction to Learning Analytics

Author

Dhruva Mathur

Published

November 23, 2026

Introduction

Purpose and Research Questions

UNC system recruits more than 33,000 in-state first-time freshmen every year across its 16 campuses from 100 North Carolina counties. The spread of freshmen is uneven across its campuses with UNC Chapel-Hill and NCSU being the dominant campuses and recruiting around 9000 of these students. As American higher education enters the demographic cliff, it becomes important to understand how these trends affect recruitment for in-state students. In a sense, campuses will be competing for an increasingly smaller pie of in-state students. Therefore, it becomes important to understand how local student recruitment markets are shaped.

Through this analysis, we hope to identify how the student recruitment market operates in North Carolina. Specifically, we are interested in undertaking a network analysis of in-state student recruitment with UNC campuses serving as the nodes of the system. The goal is to analyze which campuses recruit from which counties and if there is an overlap in the counties that the campuses recruit from. Hence, this analysis will address the following research questions:

RQ1: Which campuses build a localized market for recruitment and which other campuses recruit from the same counties?

RQ2: Which UNC campuses are central (in terms of connections and rivals) and how has this pattern changed between before and after Covid?

Through this study, we hope to provide the UNC system office and the UNC Board of Governors more insights into how local recruitment markets are shaped. In addition, as in-state enrollment patterns evolve, university admissions officers can use this analysis to identify their major markets and develop more targeted recruitment activities for them.

Data Sources

The analysis relies entirely on publicly available datasets. These include:

Now that we are aware of the datasets and data sources. Let’s load the library.

install.packages(c("tidyverse", "readxl", "igraph", "ggraph", "ggrepel", "maps"))
Installing packages into '/cloud/lib/x86_64-pc-linux-gnu-library/4.6'
(as 'lib' is unspecified)
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.2.1     ✔ readr     2.2.0
✔ forcats   1.0.1     ✔ stringr   1.6.0
✔ ggplot2   4.0.4     ✔ tibble    3.3.1
✔ lubridate 1.9.5     ✔ tidyr     1.3.2
✔ purrr     1.2.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(readxl)
library(igraph)

Attaching package: 'igraph'

The following objects are masked from 'package:lubridate':

    %--%, union

The following objects are masked from 'package:dplyr':

    as_data_frame, groups, union

The following objects are masked from 'package:purrr':

    compose, simplify

The following object is masked from 'package:tidyr':

    crossing

The following object is masked from 'package:tibble':

    as_data_frame

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union
library(ggraph)
library(ggrepel)

#let's also add a palette of NCSU colors for graphs
ncsu_red <- "#CC0000"
ncsu_black <- "#000000"
ncsu_reynolds <- "#990000"
ncsu_gray <- "#CCCCCC"
ncsu_darkgray <- "#666666"
ncsu_white <- "#FFFFFF"
ncsu_yellow   <- "#FAC800"
ncsu_orange   <- "#D14905"

#let's also add a common note for the visuals
src <- "Source: UNC System student enrollment dashboard, in-state first-time freshmen."
chart_style <- theme(plot.title   = element_text(face = "bold", size = 15),
                     plot.caption = element_text(colour = ncsu_darkgray, hjust = 0))

Wrangle

Data Preprocessing

University Enrollment Data

We will first begin by loading the individual university enrollment xlsx files containing county level enrollment data from Fall 2016 to 2025. We will then append them together.

#load the files into a single vector
enroll_files <- list.files("/cloud/project/data/enrollments", 
                           pattern = "_WSCF_In_Table_Count\\.xlsx",
                           full.names = TRUE)

#let's note down the common file naming pattern
file_pattern <- "_WSCF_In_Table_Count\\.xlsx"

#let's verify that all 16 files (one per campus) were loaded
length(enroll_files)
[1] 16

We will now append these 16 files together to get one file which lists the campus name, county name, year, and enrollment columns.

#let's begin by appending the files together using their campus names
enroll <- enroll_files %>%
  set_names(~ str_remove(basename(.x), file_pattern)) %>%
  map(read_excel, .name_repair = "unique_quiet") %>%
  list_rbind(names_to = "campus") %>%
  #we will now finalize the county and enrollment columns
  fill(County) %>%
  filter(`...5` == "Student Headcount") %>%
  #we will now transform the data from wide to long and have one row per campus x county x year
  pivot_longer(
    cols = starts_with("Fall"),
    names_to = "year",
    names_prefix = "Fall ",
    names_transform = as.numeric,
    values_to = "enrollments"
  ) %>%
  select(campus, County, year, enrollments)

glimpse(enroll)
Rows: 15,190
Columns: 4
$ campus      <chr> "App_State", "App_State", "App_State", "App_State", "App_S…
$ County      <chr> "Alamance", "Alamance", "Alamance", "Alamance", "Alamance"…
$ year        <dbl> 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025…
$ enrollments <dbl> 47, 40, 56, 67, 72, 48, 30, 44, 33, 36, 15, 8, 9, 14, 13, …
#let's also take a look at annual enrollments for each campus
enroll %>%
  group_by(campus, year) %>%
  summarize(freshmen = sum(enrollments, na.rm = TRUE), .groups = "drop") %>%
  pivot_wider(names_from = year, values_from = freshmen)
# A tibble: 16 × 11
   campus  `2016` `2017` `2018` `2019` `2020` `2021` `2022` `2023` `2024` `2025`
   <chr>    <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>
 1 App_St…   2827   2964   3125   3218   3629   3661   3400   3664   3473   3507
 2 East_C…   3638   3853   3661   3830   3611   3526   3158   3225   3308   3439
 3 Elizab…    189    319    299    307    274    218    227    238    293    258
 4 Fayett…    610    614    570    602    658    547    658    629    593    566
 5 NC_Agr…   1463   1625   1547   1695   1523   1942   1762   1834   1567   2007
 6 NC_Sta…   3701   4070   4232   4242   4135   4293   4648   4883   5027   5111
 7 North_…    921   1082    860    806    889    855    703   1100   1251   1174
 8 UNC_As…    563    566    664    567    497    508    414    513    610    414
 9 UNC_Ch…   3507   3666   3554   3439   3717   3745   3701   3735   3910   4177
10 UNC_Ch…   3156   3129   3403   3360   3658   3837   3680   4041   4174   4402
11 UNC_Gr…   2672   2644   2854   2604   2295   2379   2160   2430   2262   2437
12 UNC_Pe…   1052    984   1153   1033    823    777    589    742    648    755
13 UNC_Sc…    102     80    113    113    100     99     91    122    113    128
14 UNC_Wi…   1885   1785   1829   2022   1738   1994   1888   2071   2402   2683
15 Wester…   1772   1816   1869   1782   1513   1416   1553   1645   1548   1514
16 Winsto…    875    864    816    837    831    765    701    683    697    799

County and FIPS Data

We will now reorganize county names to ensure its all Proper Case and remove the Unknown Nc entry.

#let's begin by propercasing county names
enroll <- enroll %>%
  rename(county = County) %>%
  mutate(county = str_to_title(str_trim(county)))

#let's count the number of students with no county
unknown_nc <- enroll %>%
  filter(county == "Unknown Nc") %>%
  group_by(year) %>%
  summarise(unknown_students = sum(enrollments, na.rm = TRUE))

unknown_nc
# A tibble: 10 × 2
    year unknown_students
   <dbl>            <dbl>
 1  2016              241
 2  2017              541
 3  2018              122
 4  2019              142
 5  2020              168
 6  2021              177
 7  2022              458
 8  2023              455
 9  2024              603
10  2025              696
#let's remove the Unknown County entry from the dataset
enroll <- enroll %>%
  filter(county != "Unknown Nc")

#let's also check how many blank entries we have
sum(is.na(enroll$enrollments))
[1] 2922

We have downloaded the FIPS county data from the US Government. FIPS are unique codes given to counties. By merging these with our dataset, it will be easier for us to later merge data at the county level.

#let's read the downloaded fips csv and retain only distinct fips codes for North Carolina counties
fips <- read_csv("data/state_county_and_city_fips_reference_table_20260921.csv", show_col_types = FALSE) %>%
  filter(`State Code` == "NC") %>%
  transmute(county = str_to_title(str_trim(`County Name`)),
            fips = as.numeric(`StCnty FIPS Code`)) %>%
  distinct()

nrow(fips)
[1] 100
#let's merge the fips dataset with the enroll dataset
enroll %>%
  distinct(county) %>%
  anti_join(fips, by = "county")
# A tibble: 0 × 1
# ℹ 1 variable: county <chr>
enroll <- enroll %>%
  left_join(fips, by = "county")

IPEDS Data

We will now create a dataset for the UNC campuses to include information about their HBCU status and their location from the IPEDS dataset.

#let's first create a tibble which we can use to join the ipeds data containing HBCU status and location information with out enrollment data
campus_ids <- tribble(
  ~campus,                                            ~unitid, ~campus_short,
  "App_State",                                         197869, "App State",
  "East_Carolina",                                     198464, "ECU",
  "Elizabeth_City_State",                              198507, "ECSU",
  "Fayetteville_State",                                198543, "FSU",
  "NC_Agricultural_and_Technical_State_University",    199102, "NC A&T",
  "UNC_Asheville",                                     199111, "UNCA",
  "UNC_Chapel_Hill",                                   199120, "UNC-CH",
  "UNC_Charlotte",                                     199139, "UNCC",
  "UNC_Greensboro",                                    199148, "UNCG",
  "North_Carolina_Central_University",                 199157, "NCCU",
  "UNC_School_of_the_Arts",                            199184, "UNCSA",
  "NC_State_University",                               199193, "NC State",
  "UNC_Wilmington",                                    199218, "UNCW",
  "UNC_Pembroke",                                      199281, "UNCP",
  "Winston_Salem_State_University",                    199999, "WSSU",
  "Western_Carolina_University",                       200004, "WCU"
)

#let's read the ipeds data into R
ipeds <- read_csv("data/ipeds_data_092426.csv", show_col_types = FALSE, name_repair = "unique_quiet") %>%
  transmute(unitid = UnitID,
            hbcu = if_else(`HBCU (HD2023)` == 1, "HBCU", "Non-HBCU"),
            campus_fips = `COUNTYCD (HD2023)`,
            campus_lat = `LATITUDE (HD2023)`,
            campus_long = `LONGITUD (HD2023)`)

#let's add the ipeds unitid with enrollment data and the shortened campus name for easier analysis
enroll <- enroll %>%
  left_join(campus_ids, by = "campus") %>%
  select(-campus, campus = campus_short)

#let's also create a campuses dataset for the UNC universities using the ipeds dataset
campuses <- campus_ids %>%
  transmute(unitid, campus = campus_short) %>%
  left_join(ipeds, by = "unitid")

campuses
# A tibble: 16 × 6
   unitid campus    hbcu     campus_fips campus_lat campus_long
    <dbl> <chr>     <chr>          <dbl>      <dbl>       <dbl>
 1 197869 App State Non-HBCU       37189       36.2       -81.7
 2 198464 ECU       Non-HBCU       37147       35.6       -77.4
 3 198507 ECSU      HBCU           37139       36.3       -76.2
 4 198543 FSU       HBCU           37051       35.1       -78.9
 5 199102 NC A&T    HBCU           37081       36.1       -79.8
 6 199111 UNCA      Non-HBCU       37021       35.6       -82.6
 7 199120 UNC-CH    Non-HBCU       37135       35.9       -79.1
 8 199139 UNCC      Non-HBCU       37119       35.3       -80.7
 9 199148 UNCG      Non-HBCU       37081       36.1       -79.8
10 199157 NCCU      HBCU           37063       36.0       -78.9
11 199184 UNCSA     Non-HBCU       37067       36.1       -80.2
12 199193 NC State  Non-HBCU       37183       35.8       -78.7
13 199218 UNCW      Non-HBCU       37129       34.2       -77.9
14 199281 UNCP      Non-HBCU       37155       34.7       -79.2
15 199999 WSSU      HBCU           37067       36.1       -80.2
16 200004 WCU       Non-HBCU       37099       35.3       -83.2

Adjacent County Data

One of the things that we want to analysis is the niche market created by a campus’s reliance on its neighboring counties for enrollments. To do that we need to identify each campus’s neighboring counties. Hence, we will use the county adjacency files to create a dataset on it.

#let's read the adjacency file data into R
adjacency <- read_delim("/cloud/project/data/county_adjacency2023.txt", delim = "|", 
                        col_select = c(county_fips = `County GEOID`,
                                       neighbor_fips = `Neighbor GEOID`),
                        col_types = cols(.default = col_double())) %>%
  filter(county_fips %in% fips$fips, neighbor_fips %in% fips$fips)

#let's merge the adjancecy data with the campus dataset to identify neighboring counties for UNC campuses
niche <- campuses %>%
  inner_join(adjacency, 
             by = join_by(campus_fips == county_fips),
             relationship = "many-to-many") %>%
  select(campus, fips = neighbor_fips) %>%
  bind_rows(select(campuses, campus, fips = campus_fips)) %>%
  distinct() %>%
  mutate(in_niche = TRUE)

#let's see how many niche counties each campus has
niche %>% count(campus, name = "niche-counties")
# A tibble: 16 × 2
   campus    `niche-counties`
   <chr>                <int>
 1 App State                5
 2 ECSU                     5
 3 ECU                      8
 4 FSU                      7
 5 NC A&T                   7
 6 NC State                 8
 7 NCCU                     6
 8 UNC-CH                   6
 9 UNCA                     8
10 UNCC                     6
11 UNCG                     7
12 UNCP                     6
13 UNCSA                    8
14 UNCW                     3
15 WCU                      5
16 WSSU                     8

Managing Missing Data

While reading the enrollment data into R, we noted that there were a number county x campus x year combinations that were missing from the enrollment files. To ensure that this doesn’t affect our analysis, we will assume these entries to indicate 0 enrollments. Hence, we will update our enrollment dataset to reflect that.

#let's update the enrollment dataset to add the missing combination of county x campus x year and to mark them as having 0 enrollments 
enroll <- enroll %>%
  complete(nesting(unitid, campus), nesting(county, fips), year,
           fill = list(enrollments = 0)) %>%
  mutate(enrollments = replace_na(enrollments, 0))

nrow(enroll)
[1] 16000
#let's do a check that our yearly total enrollments for each campus are still the same
enroll %>%
  group_by(campus, year) %>%
  summarize(freshmen = sum(enrollments), .groups = "drop") %>%
  pivot_wider(names_from = year, values_from = freshmen)
# A tibble: 16 × 11
   campus  `2016` `2017` `2018` `2019` `2020` `2021` `2022` `2023` `2024` `2025`
   <chr>    <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>
 1 App St…   2807   2942   3121   3208   3618   3633   3336   3608   3399   3456
 2 ECSU       165    317    299    307    274    218    227    238    290    254
 3 ECU       3549   3473   3638   3807   3581   3500   3107   3166   3236   3375
 4 FSU        609    613    569    600    653    543    641    617    592    562
 5 NC A&T    1441   1577   1512   1658   1491   1888   1643   1717   1420   1861
 6 NC Sta…   3677   4044   4204   4209   4089   4259   4586   4822   4945   4995
 7 NCCU       904   1078    858    798    882    851    683   1088   1206   1115
 8 UNC-CH    3507   3663   3554   3439   3717   3745   3701   3735   3910   4136
 9 UNCA       563    565    662    566    497    507    396    501    590    401
10 UNCC      3155   3122   3400   3359   3653   3835   3676   4018   4120   4333
11 UNCG      2661   2633   2845   2593   2281   2372   2145   2414   2247   2415
12 UNCP      1050    982   1152   1030    823    777    587    741    641    752
13 UNCSA       97     76    108    106     94     91     75    106     90    112
14 UNCW      1885   1781   1827   2018   1735   1991   1869   2038   2375   2645
15 WCU       1765   1806   1865   1781   1508   1414   1517   1616   1519   1479
16 WSSU       857    848    813    836    827    761    686    675    693    784

New Features and Data Transformations

Covid Time Periods

Any analysis over this time period has to account for the impact of Covid. Hence, we’ll pool the years into 2 periods i.e. pre-Covid and post-Covid. These will result in year blocks of: 2016-2019 and 2023-2025. This will allow us to restrict Covid-era swings in enrollments.

#let's create the time periods for our analysis
enroll <- enroll %>%
  filter(year <= 2019 | year >= 2023) %>%
  mutate(period = if_else(year <= 2019, "2016-19", "2023-25"))

#let's stack the period versions now
enroll_period <- enroll %>%
  summarise(enrollments = sum(enrollments), 
            .by = c(period, campus, fips))

Enrollment Shares

To analyze our research questions, we need to understand how freshmen enrollment is distributed across counties. We will do this by building four types of shares:

  1. Campus share: to analyze how many freshmen of a campus come from a particular county.
  2. Market share: to analyze how many freshmen a county sends to a particular campus.
  3. System share: to analyze how many freshmen the county sends to the UNC system.
  4. Excess share: a measure of how many more freshmen a campus recruits more from a particular county than the system in terms of total percentage enrollment at the campus and system.
#let's build the four types of shares
shares <- enroll_period %>%
  mutate(share = enrollments/sum(enrollments),
         .by = c(period, campus)) %>%
  mutate(county_total = sum(enrollments),
         market_share = if_else(county_total > 0, enrollments/county_total, 0),
         .by = c(period, fips)) %>%
  mutate(system_share = county_total/sum(enrollments),
         .by = period) %>%
  mutate(excess = pmax(share - system_share, 0),
         excess_share = excess/sum(excess),
         .by = c(period, campus))

#let's verify that the campus_shares and excess_shares add up to 1
shares %>%
  summarise(total_share = sum(share),
            total_excess = sum(excess_share),
            .by = c(period, campus)) %>%
  summary()
       period         campus    total_share  total_excess
 Length   :32   Length   :32   Min.   :1    Min.   :1    
 N.unique : 2   N.unique :16   1st Qu.:1    1st Qu.:1    
 N.blank  : 0   N.blank  : 0   Median :1    Median :1    
 Min.nchar: 7   Min.nchar: 3   Mean   :1    Mean   :1    
 Max.nchar: 7   Max.nchar: 9   3rd Qu.:1    3rd Qu.:1    
                               Max.   :1    Max.   :1    
#let's also use the shares calculation to identify niche counties for each campus
shares <- shares %>%
  left_join(niche, by = join_by(campus, fips)) %>%
  mutate(in_niche = replace_na(in_niche, FALSE))

Analyze

Techniques

Observed and Excess Overlap Across Campuses

North Carolina has a couple of large counties such as Wake County and Mecklenburg County. So, we can safely assume that almost all campuses enroll from these counties. So the overlap between any two campuses will be high. To get a more granular insight, we can look at whether two campuses rely on the same counties for enrollments more than the system. This will indicate excess overlap and will serve as the link weight in the network.

shares_slim <- shares %>%
  select(period, fips, campus, share, excess_share)

#let's create campus pairs to study the overlaps by using a weighted overlap based on feedback
edges <- shares_slim %>%
  inner_join(shares_slim,
             by = join_by(period, fips, campus < campus),
             suffix = c("_i", "_j")) %>%
  summarise(overlap = sum(pmin(share_i, share_j)),
            excess_overlap = sum(pmin(excess_share_i, excess_share_j)),
            .by = c(period, campus_i, campus_j))
nrow(edges)
[1] 240
#let's look at the closest pairs in the post-Covid period for excess overlap
edges_recent <- edges %>% filter(period == "2023-25")
edges_recent %>% slice_max(excess_overlap, n = 10)
# A tibble: 10 × 5
   period  campus_i  campus_j overlap excess_overlap
   <chr>   <chr>     <chr>      <dbl>          <dbl>
 1 2023-25 NC A&T    WSSU       0.832          0.633
 2 2023-25 NC A&T    NCCU       0.841          0.578
 3 2023-25 NC A&T    UNCG       0.794          0.544
 4 2023-25 NCCU      WSSU       0.778          0.526
 5 2023-25 UNCG      WSSU       0.730          0.444
 6 2023-25 App State WCU        0.699          0.426
 7 2023-25 NC State  UNCW       0.864          0.411
 8 2023-25 NC State  UNC-CH     0.869          0.389
 9 2023-25 FSU       UNCP       0.564          0.378
10 2023-25 UNCA      WCU        0.632          0.349

Network Stability

As social scientists, we must verify whether our trends actually exist or if they are an outcome of the frame of analysis that we have opted for. Hence, let’s verify if the recruitment trends remain stable across time periods i.e. before covid and after covid. This will help us verify if every pair that we identified above as having an excess overlap had the same across the two time periods.

#let's use a correlation to verify if excess overlaps for the same pairs are constant over the two time periods
cor(edges$excess_overlap[edges$period == "2016-19"],
    edges$excess_overlap[edges$period == "2023-25"])
[1] 0.9047482

Hence, the excess overlap trends are stable across periods.

Building the Networks

For each time period, the campuses will serve as the nodes and the excess overlaps will be the weighted links. Based on feedback, we will analyze 4 components:

  • Strength measures a campus’s excess overlap with the other 15 campuses.

  • Degree (number of rivals) is the number of rivals each campus has. We will use an excess cut-off value of 0.2 since it is close to the 75th percentile in every time period (see below).

  • Betweenness to help identify the shortest route that two groups of campuses that do not recruit from the same counties share with a campus that recruits from both the group’s target counties.

  • Density measures the number of rival links divided by 120, which is the maximum number of links possible in this project.

#let's confirm our cut-off of 0.2 for excess overlap
edges %>%
  summarise(median = median(excess_overlap),
            p75 = quantile(excess_overlap, 0.75),
            p90 = quantile(excess_overlap, 0.90),
            .by = period)
# A tibble: 2 × 4
  period  median   p75   p90
  <chr>    <dbl> <dbl> <dbl>
1 2016-19 0.0789 0.220 0.292
2 2023-25 0.106  0.204 0.334
#let's set the cut-off as 0.2 based on feedback
cutoff <- 0.20

#let's build the network measures for each campus and period
network_metrics <- tibble()
for (p in unique(edges$period)) {
  links <- edges %>% filter(period == p, excess_overlap >0)
  g_all <- igraph::graph_from_data_frame(links %>% select(campus_i, campus_j), directed = FALSE, vertices = campuses$campus)
  g_cut <- igraph::graph_from_data_frame(links %>% filter(excess_overlap >= cutoff) %>% select(campus_i, campus_j), directed = FALSE, vertices = campuses$campus)
  network_metrics <- bind_rows(network_metrics, tibble(
    period = p,
    campus = campuses$campus,
    hbcu = campuses$hbcu,
    strength = igraph::strength(g_all, weights = links$excess_overlap),
    degree = igraph::degree(g_cut),
    betweenness = igraph::betweenness(g_all, weights = 1/links$excess_overlap, normalized = TRUE),
    betweenness_cutoff = igraph::betweenness(g_cut, normalized = TRUE)))
}

network_metrics %>% filter(period == "2023-25") %>% arrange(desc(strength))
# A tibble: 16 × 7
   period  campus    hbcu     strength degree betweenness betweenness_cutoff
   <chr>   <chr>     <chr>       <dbl>  <dbl>       <dbl>              <dbl>
 1 2023-25 WSSU      HBCU         3.19      5     0.210               0.183 
 2 2023-25 NC A&T    HBCU         3.16      4     0.171               0.0413
 3 2023-25 NCCU      HBCU         3.02      7     0.152               0.337 
 4 2023-25 UNCSA     Non-HBCU     2.44      5     0.133               0.190 
 5 2023-25 UNCC      Non-HBCU     2.32      6     0.0762              0.260 
 6 2023-25 App State Non-HBCU     2.32      4     0.0286              0.0698
 7 2023-25 UNC-CH    Non-HBCU     2.31      3     0.0381              0     
 8 2023-25 UNCW      Non-HBCU     2.20      5     0.0571              0.0968
 9 2023-25 ECU       Non-HBCU     2.19      4     0.0952              0.0762
10 2023-25 UNCG      Non-HBCU     1.81      3     0                   0     
11 2023-25 NC State  Non-HBCU     1.71      4     0                   0.0135
12 2023-25 WCU       Non-HBCU     1.68      3     0                   0     
13 2023-25 UNCA      Non-HBCU     1.44      3     0.00952             0     
14 2023-25 ECSU      HBCU         1.36      2     0                   0     
15 2023-25 FSU       HBCU         1.32      3     0.0571              0.133 
16 2023-25 UNCP      Non-HBCU     1.05      1     0                   0     
network_metrics %>% filter(period == "2023-25") %>% arrange(desc(betweenness))
# A tibble: 16 × 7
   period  campus    hbcu     strength degree betweenness betweenness_cutoff
   <chr>   <chr>     <chr>       <dbl>  <dbl>       <dbl>              <dbl>
 1 2023-25 WSSU      HBCU         3.19      5     0.210               0.183 
 2 2023-25 NC A&T    HBCU         3.16      4     0.171               0.0413
 3 2023-25 NCCU      HBCU         3.02      7     0.152               0.337 
 4 2023-25 UNCSA     Non-HBCU     2.44      5     0.133               0.190 
 5 2023-25 ECU       Non-HBCU     2.19      4     0.0952              0.0762
 6 2023-25 UNCC      Non-HBCU     2.32      6     0.0762              0.260 
 7 2023-25 FSU       HBCU         1.32      3     0.0571              0.133 
 8 2023-25 UNCW      Non-HBCU     2.20      5     0.0571              0.0968
 9 2023-25 UNC-CH    Non-HBCU     2.31      3     0.0381              0     
10 2023-25 App State Non-HBCU     2.32      4     0.0286              0.0698
11 2023-25 UNCA      Non-HBCU     1.44      3     0.00952             0     
12 2023-25 ECSU      HBCU         1.36      2     0                   0     
13 2023-25 UNCG      Non-HBCU     1.81      3     0                   0     
14 2023-25 NC State  Non-HBCU     1.71      4     0                   0.0135
15 2023-25 UNCP      Non-HBCU     1.05      1     0                   0     
16 2023-25 WCU       Non-HBCU     1.68      3     0                   0     
#let's confirm that the two betweenness versions rank campuses the same way
network_metrics %>% summarise(rank_correlation = cor(betweenness, betweenness_cutoff, method = "spearman"), .by = period)
# A tibble: 2 × 2
  period  rank_correlation
  <chr>              <dbl>
1 2016-19            0.885
2 2023-25            0.787
#let's look at rival links and density at the cut-off and at 0.15 and 0.25
network_summary <- edges %>%
  cross_join(tibble(cutoff_value = c(0.15, 0.20, 0.25))) %>%
  summarise(rival_links = sum(excess_overlap >= cutoff_value),
            density = mean(excess_overlap >= cutoff_value),
            .by = c(period, cutoff_value))
network_summary
# A tibble: 6 × 4
  period  cutoff_value rival_links density
  <chr>          <dbl>       <int>   <dbl>
1 2016-19         0.15          43   0.358
2 2016-19         0.2           32   0.267
3 2016-19         0.25          23   0.192
4 2023-25         0.15          49   0.408
5 2023-25         0.2           31   0.258
6 2023-25         0.25          23   0.192

Metrics

Niche Markets

Our first research question seeks to understand the local markets of a campus. We will use the concept of niche markets to measure that by defining it as the campus’s own county and those that border it. To answer the question, we’ll first build a measure of dependence to see how much each campus relies on its niche i.e. niche dependence. This measure will calculate the share of freshmen that each campus recruits from its niche counties.

To evaluate, how it manages competition in its niche markets we will develop a measure of niche dominance. This measure will calculate the share that this campus recruits from its niche market compared to the entire UNC system in the same counties. A campus that demonstrates a high niche dependence and dominance relies on its local markets and wins them.

#let's build our measures of niche dependence and niche dominance
niche_markets <- shares %>%
  filter(in_niche) %>%
  summarise(niche_counties = n(),
            niche_dependence = sum(share),
            niche_dominance = sum(enrollments)/sum(county_total),
            .by = c(period, campus))

#let's measure the change between the pre-Covid and post-Covid periods
niche_change <- niche_markets %>%
  filter(period %in% c("2016-19", "2023-25")) %>%
  pivot_wider(id_cols = campus,
              names_from = period,
              values_from = c(niche_dependence, niche_dominance))
niche_change
# A tibble: 16 × 5
   campus   niche_dependence_201…¹ niche_dependence_202…² niche_dominance_2016…³
   <chr>                     <dbl>                  <dbl>                  <dbl>
 1 App Sta…                 0.0413                 0.0481                0.285  
 2 ECU                      0.129                  0.160                 0.349  
 3 ECSU                     0.261                  0.189                 0.365  
 4 FSU                      0.468                  0.545                 0.121  
 5 NC A&T                   0.249                  0.251                 0.0769 
 6 UNCA                     0.194                  0.219                 0.0972 
 7 UNC-CH                   0.125                  0.138                 0.198  
 8 UNCC                     0.389                  0.365                 0.195  
 9 UNCG                     0.367                  0.364                 0.197  
10 NCCU                     0.259                  0.233                 0.0350 
11 UNCSA                    0.258                  0.192                 0.00546
12 NC State                 0.352                  0.354                 0.197  
13 UNCW                     0.113                  0.0986                0.214  
14 UNCP                     0.537                  0.530                 0.289  
15 WSSU                     0.249                  0.245                 0.0456 
16 WCU                      0.0916                 0.103                 0.518  
# ℹ abbreviated names: ¹​`niche_dependence_2016-19`,
#   ²​`niche_dependence_2023-25`, ³​`niche_dominance_2016-19`
# ℹ 1 more variable: `niche_dominance_2023-25` <dbl>

Contested Counties

Most of our analysis relies on campus to campus links. However, counties are also a key variable for us to understand how localized markets are shaped. Hence, we can create a measure for the post-Covid period to see how many campuses recruit over 10% of a county’s freshmen and which campus recruits the most from that county.

#let's see which campus gets 10% of each county and which campus recruits the most
county_side <- shares %>%
  filter(period == "2023-25") %>%
  summarise(unc_freshmen = sum(enrollments),
            campuses_10pct = sum(market_share >= 0.10),
            top_campus_share = max(market_share),
            top_campus = campus[which.max(market_share)],
            .by = fips) %>%
  left_join(fips, by = "fips")

county_side %>% count(campuses_10pct)
# A tibble: 7 × 2
  campuses_10pct     n
           <int> <int>
1              1     4
2              2    11
3              3    30
4              4    35
5              5    17
6              6     2
7              7     1
county_side %>% slice_max(top_campus_share, n = 10) %>% select(county, top_campus, top_campus_share)
# A tibble: 10 × 3
   county   top_campus top_campus_share
   <chr>    <chr>                 <dbl>
 1 Macon    WCU                   0.6  
 2 Jackson  WCU                   0.577
 3 Robeson  UNCP                  0.567
 4 Cherokee WCU                   0.523
 5 Clay     WCU                   0.516
 6 Graham   WCU                   0.512
 7 Greene   ECU                   0.504
 8 Swain    WCU                   0.490
 9 Beaufort ECU                   0.462
10 Watauga  App State             0.452

Data Visualization

Niche Quadrant

Based on our analysis, we will now create a quadrant to review how each campus fares in its niche markets in the post-Covid period. The further right a campus sits implies that it has more students coming from its niche areas than others. If a campus sits higher-up, it implies that it secures a larger share of freshmen from that county than others. The dashed lines indicate the median campus on each measure with the size of the dot signifying the scale of enrollments in a year.

#let's identify each campus's niche dependence and dominance in 2023-25 and the scale of student enrollment
niche_recent <- niche_markets %>%
  filter(period == "2023-25") %>%
  left_join(shares %>% filter(period == "2023-25") %>% summarise(freshmen = sum(enrollments) / 3, .by = campus),
            by = "campus")

#let's build the quadrant chart and split it into 4 corners
p_niche <- ggplot(niche_recent, aes(x = niche_dependence, y = niche_dominance)) +
  annotate("text", x = c(0.03, 0.56, 0.03, 0.56), y = c(0.56, 0.56, -0.04, -0.04), hjust = c(0, 1, 0, 1),
           label = c("HOME-AREA\nWINNERS", "LOCAL\nSTRONGHOLDS", "STATEWIDE\nRECRUITERS", "HOME-AREA RELIANT,\nOUTRECRUITED"),
           size = 6, colour = ncsu_gray, fontface = "bold.italic") +
  geom_vline(xintercept = median(niche_recent$niche_dependence), colour = ncsu_gray, linetype = "dashed") +
  geom_hline(yintercept = median(niche_recent$niche_dominance), colour = ncsu_gray, linetype = "dashed") +
  geom_point(aes(size = freshmen), colour = ncsu_red, alpha = 0.9) +
  geom_text_repel(aes(label = campus), size = 3.7, seed = 1, point.padding = 0.6) +
  scale_size_area(max_size = 10, breaks = c(500, 2000, 4000), name = "In-state freshmen\nper year") +
  scale_x_continuous(labels = scales::percent, limits = c(0.03, 0.56)) +
  scale_y_continuous(labels = scales::percent, limits = c(-0.08, 0.58)) +
  labs(title = "Niche markets: reliance on and share of the home area, fall 2023-25",
       subtitle = "Dashed lines = median campus",
       x = "Relies on home area →  (share of the campus's freshmen from its niche)",
       y = "Wins home area →\n(campus's share of all UNC freshmen from its niche)",
       caption = paste("Niche = campus county plus bordering counties.", src)) +
  theme_bw(base_size = 12) + theme(panel.grid.minor = element_blank()) + chart_style

p_niche

Campus Rivalry

We will now look at which campuses recruit from the same counties by developing a map highlighting the highest excess overlap between campuses in the post-Covid period. The map indicates competing pairs by joining them with a line and the thickness of the line indicates the extent of both campuses’ dependence on the same counties.

#let's move campuses that are in the same city a little so that we can see them better
campus_points <- campuses %>%
  mutate(campus_lat  = campus_lat + case_when(campus %in% c("UNCSA", "UNCG") ~ 0.17, campus %in% c("WSSU", "NC A&T") ~ -0.14,
                                              campus == "NCCU" ~ 0.08, campus == "UNC-CH" ~ -0.06, TRUE ~ 0),
         campus_long = campus_long + case_when(campus == "UNCSA" ~ -0.15, campus == "UNCG" ~ 0.1, TRUE ~ 0))

#let's find each campus's closest rival in 2023-25 and add the start and end points of the line between them
rival_lines <- bind_rows(edges, edges %>% rename(campus_i = campus_j, campus_j = campus_i)) %>%
  filter(period == "2023-25") %>%
  slice_max(excess_overlap, n = 1, by = campus_i) %>%
  left_join(campus_points %>% select(campus_i = campus, x1 = campus_long, y1 = campus_lat), by = "campus_i") %>%
  left_join(campus_points %>% select(campus_j = campus, x2 = campus_long, y2 = campus_lat), by = "campus_j")

rival_lines %>% select(campus_i, campus_j, excess_overlap)
# A tibble: 16 × 3
   campus_i  campus_j  excess_overlap
   <chr>     <chr>              <dbl>
 1 App State WCU                0.426
 2 ECU       ECSU               0.347
 3 ECSU      ECU                0.347
 4 FSU       UNCP               0.378
 5 NC A&T    WSSU               0.633
 6 UNCA      WCU                0.349
 7 UNC-CH    NC State           0.389
 8 UNCC      UNC-CH             0.334
 9 UNCG      NC A&T             0.544
10 NCCU      NC A&T             0.578
11 UNCSA     App State          0.333
12 NC State  UNCW               0.411
13 UNCW      NC State           0.411
14 UNCP      FSU                0.378
15 WCU       App State          0.426
16 WSSU      NC A&T             0.633
#let's create a map of North Carolina and have a red line connecting rivals
p_rival <- ggplot() +
  geom_polygon(data = map_data("state", "north carolina"), aes(x = long, y = lat, group = group), fill = NA, colour = ncsu_gray) +
  geom_segment(data = rival_lines, aes(x = x1, y = y1, xend = x2, yend = y2, linewidth = excess_overlap),
               colour = ncsu_red, alpha = 0.85, lineend = "round") +
  geom_point(data = campus_points, aes(x = campus_long, y = campus_lat), size = 3.5, colour = ncsu_black) +
  geom_label_repel(data = campus_points, aes(x = campus_long, y = campus_lat, label = campus),
                   size = 3.5, seed = 4, label.size = 0, fill = ncsu_white, box.padding = 0.6, min.segment.length = 0) +
  scale_linewidth(range = c(0.8, 3), name = "Excess overlap") +
  coord_quickmap() +
  labs(title = "Each UNC campus's closest recruiting rival, fall 2023-25",
       subtitle = "A line joins each campus to the campus it shares the most counties with (highest excess overlap)",
       caption = paste("Campuses in the same city are pulled slightly apart so all can be seen.", src)) +
  theme_void(base_size = 12) + theme(legend.position = "bottom") + chart_style

p_rival

Contested Counties

We will use our previously created dataset that measured how contested a county was to put it on a map. The map shades each county by the number of campuses that contest it i.e. recruit at least 10% of its freshmen in 2023-25. Our findings show that 55 of the counties are contested by at least 4 campuses. This also implies that truly local markets are rare which is verified by our analysis of the niche quadrant.

#let's use the contested county data to build a map and group the counties by 1 to 4 and 5+ campuses
nc_map <- map_data("county", "north carolina") %>%
  mutate(county = str_to_title(subregion)) %>%
  left_join(county_side, by = "county") %>%
  mutate(campuses_group = factor(pmin(campuses_10pct, 5), levels = 1:5, labels = c("1", "2", "3", "4", "5+")))

#let's shade each county by the number of campuses that recruit at least 10% of its freshmen
p_county <- ggplot(nc_map, aes(x = long, y = lat, group = group, fill = campuses_group)) +
  geom_polygon(colour = ncsu_white, linewidth = 0.15) +
  scale_fill_manual(values = c(ncsu_gray, ncsu_yellow, ncsu_orange, ncsu_red, ncsu_reynolds),
                    name = "Campuses", drop = FALSE) +
  coord_quickmap() +
  labs(title = "Contested recruiting markets across North Carolina, fall 2023-25",
       subtitle = "Number of UNC campuses that each win at least 10% of a county's UNC freshmen",
       caption = src) +
  theme_void(base_size = 12) + theme(legend.position = "bottom") + guides(fill = guide_legend(nrow = 1)) + chart_style

p_county

Campus Centrality

We will now address the second research questions which seeks to understand which campuses are central in the competition network and how centrality has changed between the two periods. The first panel reviews each campus’s strength in 2023-25 by measuring each campus’s excess overlap against the other campuses. The second panel measures the change in strength since 2016-19 and the third panel shows the change in betweenness. It measures how a campus’s role as a bridge between other campuses has changed.

#let's build a table highlight each campus's strength and betweenness in each period, and the change between them
centrality_change <- network_metrics %>%
  filter(period %in% c("2016-19", "2023-25")) %>%
  select(period, campus, strength, betweenness) %>%
  pivot_wider(names_from = period, values_from = c(strength, betweenness)) %>%
  mutate(strength_change    = `strength_2023-25` - `strength_2016-19`,
         betweenness_change = `betweenness_2023-25` - `betweenness_2016-19`)

centrality_change
# A tibble: 16 × 7
   campus    `strength_2016-19` `strength_2023-25` `betweenness_2016-19`
   <chr>                  <dbl>              <dbl>                 <dbl>
 1 App State               2.37               2.32               0.0571 
 2 ECU                     2.18               2.19               0.124  
 3 ECSU                    1.09               1.36               0      
 4 FSU                     1.60               1.32               0.114  
 5 NC A&T                  3.25               3.16               0.0571 
 6 UNCA                    1.59               1.44               0.0381 
 7 UNC-CH                  2.16               2.31               0.0952 
 8 UNCC                    1.83               2.32               0.133  
 9 UNCG                    1.77               1.81               0      
10 NCCU                    2.78               3.02               0.171  
11 UNCSA                   2.16               2.44               0.0667 
12 NC State                1.28               1.71               0.00952
13 UNCW                    1.62               2.20               0.00952
14 UNCP                    1.09               1.05               0      
15 WSSU                    3.32               3.19               0.238  
16 WCU                     1.76               1.68               0      
# ℹ 3 more variables: `betweenness_2023-25` <dbl>, strength_change <dbl>,
#   betweenness_change <dbl>
#let's build the dataset for a chart to showcase strength in 2023-25, and the changes in strength and betweenness
chart_data <- centrality_change %>%
  select(campus, `strength_2023-25`, strength_change, betweenness_change) %>%
  pivot_longer(-campus, names_to = "panel") %>%
  mutate(campus = reorder(campus, value * (panel == "strength_2023-25")),
         colour_group = case_when(panel == "strength_2023-25" ~ "Level in 2023-25", value >= 0 ~ "Rose", TRUE ~ "Fell"),
         colour_group = factor(colour_group, levels = c("Level in 2023-25", "Rose", "Fell")),
         value_label  = case_when(panel == "strength_2023-25" ~ sprintf("%.2f", value),
                                  abs(value) < 0.005 ~ "0", TRUE ~ sprintf("%+.2f", value)),
         panel = factor(panel, levels = c("strength_2023-25", "strength_change", "betweenness_change"),
                        labels = c("Strength in 2023-25: how much a campus overlaps with all others",
                                   "Change in strength since 2016-19",
                                   "Change in betweenness since 2016-19: how often a campus is the bridge between two others")))

#let's create the bar chart
p_central <- ggplot(chart_data, aes(x = value, y = campus, fill = colour_group)) +
  geom_col(width = 0.7) +
  geom_vline(xintercept = 0, colour = ncsu_black) +
  geom_text(aes(label = value_label, hjust = if_else(value >= 0, -0.15, 1.15)), size = 3.2) +
  facet_wrap(~ panel, scales = "free_x", labeller = label_wrap_gen(34)) +
  scale_fill_manual(values = c(`Level in 2023-25` = ncsu_darkgray, Rose = ncsu_red, Fell = ncsu_gray), name = NULL) +
  scale_x_continuous(expand = expansion(mult = 0.25)) +
  labs(title = "Which campuses are most central, and which became more central?",
       subtitle = "Campuses sorted by strength in 2023-25. Change = 2016-19 to 2023-25.",
       x = NULL, y = NULL, caption = src) +
  theme_bw(base_size = 12) +
  theme(panel.grid.major.y = element_blank(), panel.grid.minor = element_blank(),
        legend.position = "top", legend.justification = "left",
        strip.text = element_text(face = "bold", hjust = 0), strip.background = element_rect(fill = ncsu_gray),
        panel.spacing = unit(1.5, "lines")) +
  chart_style

p_central

Communication

Key Findings

Our analysis finds that few campuses are able to truly win local markets. For instance, WCU, App State, and ECU are able to recruit between 36% to 47% of their local market’s (home county and neighboring counties) freshmen but this constitutes only 5% to 16% of their total recruitment. Otherwise most of the counties have multiple campuses recruiting from them with no single campus successfully recruiting most of the county’s freshmen. In fact, only 4 counties out of the 100 North Carolina counties have one campus successfully recruiting at least 10% of that county’s freshmen. This also indicates that most of the competition is regional. Thus, every campus’s biggest rival is usually a campus close to it. In addition, in the Triad and Triangle areas the biggest rival of an HBCU is often another HBCU. In other areas, it is often another regional rival.

An important finding from this analysis is that campus centrality is primarily driven by a regional cluster of counties that campuses share with other campuses. As a whole the clusters were stable between the two time periods. However, large campuses such as UNCC, UNCW, and NC State overlap more with the system now than they did previously.

Recommendations

Our findings hold key implications for the UNC System. System officials can use these findings to better develop strategies for the system. For instance, given that 55 counties witness recruitment from 4 or more campuses, system officials can better organize recruitment events so that students from these counties are more aware of the different offerings given by the campuses. In addition, few universities enjoy local markets. Thus, UNC System officials can look into developing programs such as localized NC Promise which help ensure that campuses that are heavily reliant on their local markets can be protected from any unforeseen drops in recruitment.

Ethics and Limitations

The analysis draws from public aggregate data and thus, does not face any anonymisation challenges. However, the analysis was limited by the nature of the data. For instance, campuses UNCSA and ECSU recruit far fewer students than other campuses, thus, small changes in enrollments can have a big impact on their strength, county shares and other calculations. Lastly, our analysis relies primarily on enrollment data. Thus, it cannot be used to make claims about student college choices. Hence, the analysis is purely descriptive and cannot be used to make causal claims.

References

  1. University of North Carolina System. (n.d.). Where students come from [Interactive data dashboard]. UNC System Interactive Data Dashboards: Student Enrollment. https://insight.northcarolina.edu/t/Public/views/db_enroll/WhereStudentsComeFrom

  2. U.S. Department of Education, National Center for Education Statistics. (2023). Integrated Postsecondary Education Data System (IPEDS): Institutional characteristics, directory information (HD2023) [Data set]. https://nces.ed.gov/ipeds/datacenter/InstitutionByName.aspx

  3. U.S. Department of Transportation, Federal Railroad Administration. (n.d.). State, county and city FIPS reference table[Data set]. U.S. Department of Transportation Open Data Portal. https://data.transportation.gov/Railroads/State-County-and-City-FIPS-Reference-Table/eek5-pv8d

  4. U.S. Census Bureau. (2023). County adjacency file [Data set]. https://www.census.gov/geographies/reference-files/time-series/geo/county-adjacency.html