ErasmusGravity

Erasmus mobility,
explained.

Research question: what explains the size of Erasmus+ Higher Education flows from one country to another? We explore associations with perceived quality of life, institution quality, language affinity and distance, controlling for broad destination prosperity. These observational results do not establish causal effects.

Read the researchExplore mobility

A gravity model of student flows

The implemented headline model is a cross-sectional PPML gravity specification on flow counts. Separate panel and COVID diagnostics examine different questions; they are not terms of one combined model.

The destination j is a city; country-level covariates use its country. GDP gap is the headline prosperity control. Salary and price-level gaps enter a separate robustness specification. Reddit provides supporting text evidence and alternative specifications, not the main QoL regressor.

Panel models use separate origin, destination and year fixed effects. COVID diagnostics use destination×field, origin and year effects. Pair fixed effects and origin×year effects are proposed extensions, not controls implemented here.

Explanatory Variables

The implemented variables and their sources. Expected signs describe hypotheses, not findings; the estimates below may differ.

β₁ · built
GDP-per-capita gap

Broad destination-prosperity control
Source: World Bank GDP per capita (gdp_gap_usd_wb)
Expected: + (richer destinations associated with more flow, broad control)

β₂ · built
Quality of life

Explanatory – perceived liveability
Source: Erasmusu city ratings (headline regressor); Reddit r/Erasmus via DeepSeek + Pydantic (supporting text evidence)
Expected: + (better perceived life attracts flows)

β₃ · built
Institution quality

Explanatory – academic pull
Source: QS World University Rankings 2023, geocoded + snapped to destination city (institution_quality.csv)
Expected: + (stronger universities attract flows)

control · built
Language affinity

Control – origin–destination language affinity (gravity friction)
Source: Shared language-family dummy (geo.py LANGUAGE_FAMILY)
Expected: + for shared/affine language family

control · built
Distance

Control – gravity friction
Source: Origin-country centroid → destination-city great-circle km (geo.py)
Expected: − (farther destinations deter flows)

robustness · built
Salary gap

Robustness only – salary heterogeneity (overlaps GDP gap)
Source: Eurostat net earnings (earnings_gap, sector_earnings_2018.csv)
Expected: ambiguous (VIF ~7 with GDP gap; not a headline term)

robustness · built
Price-level gap

Robustness only – cost of living (overlaps GDP gap)
Source: Eurostat price levels (price_level_gap)
Expected: ambiguous (VIF ~6.5 with GDP gap; not a headline term)

Model Results

Every coefficient (β) — headline PPML gravity model

Estimated terms from Spec J-main, the cross-sectional PPML model on flow counts with sending-country fixed effects and city-clustered standard errors. Significant (p<0.05) in accent. Natural-unit effect is the % change in flow for a tangible unit change — +$10,000 GDP gap, +1 Erasmusu rating point, +10 QS score points, doubling distance.

Quality-of-life coefficient across specifications

β₂ across all specs. Outcome is log(1+flow) (OLS/WLS) or flow level (PPML); covariance choices vary by specification. Headline: the city-level two-stage (panel destination attractiveness explained by Erasmusu rating).

Separate panel specifications and exploratory COVID diagnostics appear in the Time & Shocks act below.

GDP-per-capita gap

Destination minus origin GDP per capita (World Bank, current USD). Read as a broad prosperity control, not as a causal economic-pull effect. Salary gap and price-level gap are demoted to robustness because they overlap with GDP and produce an unstable monetary block (VIF ~6.5–7 in the full controls spec).

Source
World Bank GDP per capita (current USD)
gdp_gap_usd_wb · pair-level destination minus origin, joined onto the KA1 2022 panel.
Estimation
PPML on bilateral flows, city-clustered SE
Cross-section Poisson with sending-country FE on the 2022 KA1 panel; gdp_gap enters as the only monetary term.
Effect
—
loading…
Evidence (robustness)
NACE-sector earnings explorer
Compare a country and unit in Salary reference for monthly earnings by sector — the salary heterogeneity behind the demoted salary-gap robustness term. See the full controls breakdown under Variables.

Quality of life

A text layer over r/Erasmus and a numeric layer from Erasmusu city ratings. Tests whether students are pulled toward places that read as friendlier, cheaper, livelier in student talk.

Source
Reddit r/Erasmus + Erasmusu city ratings
Destinations extracted via OpenRouter (DeepSeek) + Pydantic · sentiment, themes, city/country. Weighted-net sentiment uses confidence × log(1+upvotes) × EWMA age-decay (1-year half-life), so stale opinions fade as fresh ones arrive on re-scrape.
Estimation
City-level two-stage
Stage 1: PPML with separate origin, destination-city and year effects. Stage 2: opinion-weighted regression of city effects on Erasmusu ratings, with country-clustered standard errors. The coefficient is on estimated log-attractiveness, not a causal flow response.
Effect
—
loading…
Evidence
Per-country sentiment table
Net sentiment = (pos − neg) / mentions · small per-country counts, treat as qualitative signal. See table below.

Destination mentions extracted from r/Erasmus posts and comments. Score-weighted net also weights by extraction confidence and log Reddit score. Click headers to sort.

Institution quality

Each destination university enters as a ranking score. The headline cross-sectional model conditions on GDP gap, distance, language affinity and Erasmusu ratings. QS scores proxy academic attractiveness and may also reflect institutional scale and networks.

Source
QS World University Rankings 2023
QS overall score (0–100 composite of research, teaching, employability, internationalisation). Each Erasmus city gets its best-ranked university's score. European institutions geocoded via Nominatim and snapped to the nearest Erasmus city within 35 km · institution_quality.csv.
Estimation
PPML, ranking score on destination city
Same gravity spec as β₁ with the destination's best-ranked university score added as a city-level regressor.
Effect
—
loading…
Evidence
Crowd cross-check: StudyPortals
User ratings of universities, scraped from Wayback. Independent crowd-vs-expert signal · user_institution_quality.csv.

Comparing specifications can change both the sample and the controls, so coefficient differences alone do not isolate an institution-quality effect. See Model Results for the full coefficient table.

Panel gravity, 2014–2023

We refit the gravity PPML on the panel of country-pair flows by year (2014–2023), with separate origin, destination and year fixed effects. These absorb stable origin/destination differences and common annual variation, not all bilateral ties. The plotted series shows year effects relative to 2014. This Stage-1 fit uses default GLM covariance; subsequent models have their own clustering choices.

A flat line would say "Erasmus volume is stable once you control for gravity". Instead we see a steady positive drift through 2019 (program scale-up), the sharp 2020 collapse when borders closed, a partial 2021 rebound, and a return above the 2019 baseline by 2023 — this is a descriptive common time pattern, not proof that composition changes or other confounders have been eliminated.

How to read: dot = year FE coefficient · dashed line = 2014 baseline (0) · coral 2020 marker = COVID shock year.

Time-varying destination indicators

When we let a regressor itself vary by year (instead of absorbing time into a single FE), within-destination movement over time identifies it. Three time-varying panels are estimated. Two of the three say something; one says nothing — that null is itself worth reading.

What is a "life-satisfaction point"? The OWID series uses the Cantril ladder from the Gallup World Poll / World Happiness Report: respondents rate their current life on a 0–10 scale ("worst possible life" to "best possible life"). The country score is the mean response. A "+1 life-satisfaction point" means moving the destination's annual mean one full rung up the ladder — e.g. roughly the Spain↔Switzerland gap in 2022. Source: data/processed/owid_country_year.csv.

β₂ time-varying QoL
—
loading…
OWID life satisfaction (Cantril ladder), 99 countries × 10 years. Origin + destination + year FE, dest-clustered SE.
edu spending %GDP
—
loading…
OWID government education spending. Same FE structure as life satisfaction. Insignificant — a useful null.
β₃ time-varying QS
—
loading…
QS World Rankings 2014/2017/2018/2023 (Wayback editions), snapped to Erasmus cities. Dest-city + origin + year FE.

Read: only life satisfaction identifies cleanly as time-varying — +25.4% per life-satisfaction point, p=0.035. The other two are null. The QS null reflects QS-score stickiness (within-city year-to-year variance is tiny); the education-spending null suggests within-country temporal drift in public-education investment doesn't move Erasmus flows.

The 2020 shock

We move from the smooth year-FE path to a real, date-pinned shock. Each ISCED-F broad field of study is mapped to one NACE sector, then we ask: did flows into (destination, field) cells whose mapped sector was hit harder in 2020 fall by more, relative to 2019? We run it twice — once with wage-based hit (LCI), once with employment-based hit (LFS) — because wage subsidies may affect the interpretation of the LCI wage series.

Source
Two hit measures, same panel
LCI covid_sector_hit.csv — sector wage growth deviation, 2015–2019 baseline. LFS covid_employment_hit.csv — sector employment growth deviation, same baseline. Field → NACE map in src/erasmusgravity/fields.py.
Estimation
PPML, dest×field + sending + year FE, cell-clustered SE
268–328 (destination, field) cells · 39 origins · 2014–2023 · Turkey dropped (hyperinflation). Same FE structure across both measures so coefficients are directly comparable.
Effect
—
loading…
loading employment hit…
Evidence
Sensitivity to the shock measure
The reported wage-based and employment-based results differ. Wage subsidies are a possible explanation, not an identified mechanism. Insignificant employment estimates do not establish a uniform lockdown effect or rule out field-specific responses. Read these as exploratory diagnostics, with the fitted estimates below.

How to read: two series of year×hit interactions (2019 as reference). Coral = LCI wage-based hit. Teal = LFS employment-based hit. Filled dots = p<0.05. Dashed horizontal line at zero. Dashed vertical line marks 2019 reference. LCI on a different y-scale from LFS — coefficients in the Effect card read as "% flow change per 1 pp harder hit sector".

Erasmus+ network

All participating countries · KA1 2024 study mobility, including partner countries outside Europe.

See the scale of the network, then choose a country to explore where its students go or where they arrive from.

Largest sending countries

    Largest receiving countries

      Mobility over time

      All countries · separate historical panel, 2014–2023.

      Flow Heatmap

      Rows and columns use the same country order: countries are sorted by total Erasmus flow volume among the displayed top countries.

      Explore a country

      Choose a country to start.

      Which country would you like to explore? Read its national context, follow outgoing or incoming mobility, and refine university-level flows.

      See the network first

      Country overview

      National context uses Higher Education study mobility, age 18+, across country borders. University-level records have separate geographic coverage; their refined totals are labelled separately.

      Refine exploration

      University & partner filters (optional)

      Choose any combination of origin university, partner country and destination university. These filters refine the map, partner chart, flow table and GDP-gap plot. National totals, grants and historical trends keep their own labelled scope.

      University Flow Map

      smaller flow larger flow One point per university endpoint, sized by students. Zoom out to aggregate nearby universities into clusters; click a cluster to zoom in and pick a university. Universities sit at their city coordinate; cities without a coordinate match fall back to their country centroid.

      Top partners

      Flow table

      GDP gap & mobility

      GDP gap = receiving-country GDP per capita minus sending-country GDP per capita (broad prosperity control, β1). Flow share = the partner’s share of the selected direction and active exploration filters.

      Salary reference

      Mean monthly gross earnings by employer's NACE economic sector. Reference year and coverage follow the loaded Eurostat Structure of Earnings Survey data.

      Destination economics

      Reported as robustness, not headline controls. salary_gap and price_level_gap proxy the same rich-vs-poor-destination dimension as the headline gdp_gap (β1): VIFs ≈ 5–7 in the full-controls PPML, so the three monetary gaps split one signal three ways. The full-economic-controls spec is kept here as an exploratory check because of this multicollinearity, not because the economics are uninteresting. See reports/gravity_model.md §4.

      Click column headers to sort. Destination metrics are weighted by each sending country's flow counts.

      Data Sources and Measurement Notes