# SAGE results by administrative area (released 2026-11-11)

Download the level datasets from `https://storage.googleapis.com/sage-archive/admin/`, one CSV per
country and level from the country pages at https://sage-elections.com, or map them in the SAGE
explorer under *Aggregate to*.

## What this dataset contains

SAGE publishes election results for small voting units such as polling
stations, polling districts and wards. For this dataset I added up those unit
results within standard administrative areas, for every contest in SAGE. The
areas are:

| Level | Areas | Source |
|---|---|---|
| `gadm1` to `gadm5` | GADM first to fifth administrative levels, where GADM has them | GADM version 4.1 |
| `nuts1`, `nuts2`, `nuts3` | Eurostat NUTS regions (European countries only) | GISCO NUTS 2003, 2006, 2010, 2013, 2016, 2021 and 2024, at 1:1 million |
| `us_county` | United States counties | US Census Bureau cartographic boundary file 2024 (1:500,000) |

GADM has a fourth level for 17 SAGE countries and a fifth level only for
France, where `gadm5` holds the communes. Each level is a separate Parquet
dataset with one folder per country (`<level>/country=<Country>/part-0.parquet`).
Every country file of a level has the same columns and types. In a separate
file, `coverage.parquet`, I record what share of each contest I placed in an
area.

A contest is one combination of country, year, `election_type`,
`special_type`, `round` and `month`, the same combination that the SAGE
explorer treats as one contest. Each row of a level dataset holds one party in
one area in one contest.

The United States results for 2008 and 2012 are not part of the public SAGE
release. They are left out of every file here as well.

## What changed since the first build

1. The French overseas departments and Åland are now part of France and
   Finland at the GADM levels (see below).
2. A point that lies just outside its own country, by 1 km or less, now goes to
   the nearest area. Before, it was left out.
3. Each election uses the NUTS version that was in force in the election year.
   Before, it used the closest version.
4. There are two new levels, `gadm4` and `gadm5`.
5. Each area row now carries the population of the area from GHS-POP
   (`ghs_pop_2015`).
6. The coverage table has three new groups of votes: `votes_snapped`,
   `votes_no_area` and `votes_excluded`.

The inputs also changed. France, Slovakia, Ghana, the United States and South
Korea were rebuilt in SAGE on 2026-10-17, and I rebuilt the point crosswalk,
the polygon overlay and the area tables for every country.

## How I placed each voting unit

A voting unit is one row group in SAGE with the same names (`NAME*` columns),
coordinates and `geometry_type` inside one contest. I placed each unit in an
area by one of two rules.

1. **Units with a drawn boundary.** When SAGE gives the unit a real boundary
   (`geometry_type` "Actual", or a polygon with a blank `geometry_type`), I
   measured how much of that boundary falls in each area. I put the whole unit
   in the area that holds the largest part of it. The column
   `polygon_overlap_mean` is the average size of that largest part, weighted
   by votes. A value of 1 means that every such unit lies entirely inside the
   area.
2. **All other units with coordinates.** For units with Thiessen cells
   (`geometry_type` beginning with "Thiessen") and units that have only a point,
   I put the unit in the area that contains the point.

I did not place these votes:

- votes in rows with `geometry_type` "Missing", even when the row has
  coordinates;
- votes in units with neither coordinates nor a boundary;
- votes in contests whose `special_type` is one of these separate vote pools:
  Abroad, Postal, Mobile, Hospital, Early, Advance Voting, Early Voting,
  Absentee Voting, Double Envelope Voting and Displaced. These pools have no
  location in SAGE;
- votes in units whose location I know to be wrong (see "Excluded units").

### Points just outside the country

GADM, NUTS and the Census county file draw coastlines and borders in less
detail than the real ones. A polling station on a quay or a small island can
fall a few hundred metres outside every area. When a point lies outside every
area of the finest level of its own country, and an area of that country is
1 km or closer, I put the point in the nearest area. I measured the distance
on the WGS84 ellipsoid. The coarser levels take the parents of that area. I
did not move any point that is more than 1 km away, and I never moved a point
into another country.

The crosswalk records each moved point (`gadm_snap_km`, `nuts_snap_km`,
`county_snap_km` and the levels that were filled). The area tables report the
share of votes that came from moved points (`snapped_vote_share`), and the
coverage table reports the moved votes per contest (`votes_snapped`, part of
`votes_placed`). Across all ordinary contests, the rule moved 6.6 million votes
in 10,807 units at `gadm1`, which is 0.05 percent of all votes in SAGE. The
largest amounts are in Brazil (2.8 million votes, mostly large polling places
on the coast), France, Indonesia, Cyprus and the Philippines. The share is
highest in Cyprus (6 percent of its votes) and Kyrgyzstan (2 percent). At
`nuts3` the rule moved 1.5 million votes. It moved no votes at `us_county`,
because the United States units are placed by their boundaries.

### French overseas departments and Åland

GADM files the French overseas departments and Åland as separate countries.
In SAGE they vote as part of France and Finland. I added them to the GADM
levels of France and Finland as a documented exception, with these levels:

| Territory | `gadm1` | `gadm2` | `gadm3` | `gadm4` | `gadm5` |
|---|---|---|---|---|---|
| Guadeloupe (GLP), Martinique (MTQ), French Guiana (GUF), Réunion (REU) | the territory (region) | the territory (department) | GADM level 1 (arrondissement) | no area | GADM level 2 (commune) |
| Mayotte (MYT) | the territory | the territory | no area | no area | GADM level 1 (commune) |
| Åland (ALA) | the territory (former province) | the territory (region) | GADM level 1 (sub-region) | GADM level 2 (municipality) | not used in Finland |

The France levels are region, department, arrondissement, canton and commune.
Each overseas department is both a region and a department. It appears at
`gadm1` and `gadm2` with the GADM country code (for example `GLP`) as its
`area_code`. GADM has no cantons for the overseas departments and no
arrondissements for Mayotte. Votes there count as `votes_no_area` at those
levels. The column `territory` holds the code of the territory for these rows
and is empty for all others. Two Åland municipalities have no name in GADM
(`ALA.1.1_2` and `ALA.2.2_2`). I left their names empty.

With this change, 3.25 million votes in six French contests and 138,505 votes
in eleven Finnish contests are placed that were outside every area before. The
other GADM territories that SAGE touches (the West Bank for Israel, Western
Sahara for Morocco, Crimea for Russia) are still outside their country, and
votes there count as `votes_outside`.

### Excluded units

In France 2022 (presidential and legislative, both rounds) and in the 2024
legislative first round, the units of the constituencies for French citizens
abroad ("Français établis hors de France", one unit per consulate) carry
points in Guadeloupe and Martinique. In 2012 and 2017 SAGE marks the same units
"Missing". I left these units out (`votes_excluded`). They are 99,750 to
154,563 votes per contest. Without the exclusion, Guadeloupe would have 62
percent more votes than the official count in the 2022 presidential first
round.

### Which NUTS version

Each election uses the NUTS version that was in force in its year. Eurostat
applies each version from 1 January of its first year:

| NUTS version | Regulation | In force |
|---|---|---|
| 2003 | 1059/2003 | 2003 to 2007 |
| 2006 | 105/2007 | 2008 to 2011 |
| 2010 | 31/2011 | 2012 to 2014 |
| 2013 | 1319/2013 | 2015 to 2017 |
| 2016 | 2016/2066 | 2018 to 2020 |
| 2021 | 2019/1755 | 2021 to 2023 |
| 2024 | 2023/674 | from 2024 |

Elections before 2003 use NUTS 2003, the earliest version. Some countries are
missing from the version in force. Serbia and Albania appear in GISCO from
NUTS 2016 and Kosovo only in NUTS 2024. For those elections I used the
earliest version that covers the country. The United Kingdom is not in NUTS
2024, and its 2024 election uses NUTS 2021. The column `nuts_version_rule`
says which case applies: `in_force`, `earliest_covering` or
`latest_covering`. NUTS codes change between versions. Compare areas across
years only after checking `nuts_version`.

### Population

`ghs_pop_2015` is the population of the area in 2015 from GHS-POP
(`GHS_POP_E2015_GLOBE_R2023A_4326_30ss`, a grid of about 1 km). Each grid cell
counts for the area that contains its centre. The year is the GHS-POP epoch,
not the election year. Areas smaller than a grid cell can have a population
of 0, which happens most often at `gadm3` and `gadm4`.

## Columns in the level datasets

| Column | Meaning |
|---|---|
| `country`, `year`, `election_type`, `special_type`, `round`, `month` | contest, as in SAGE |
| `contest_label` | contest name as written in the SAGE explorer |
| `level` | `gadm1` to `us_county` |
| `area_code` | GADM GID, NUTS code, or five-digit county FIPS code |
| `area_name` | area name from the boundary source |
| `hasc`, `iso_3166_2`, `gadm_1_gid`, `gadm_1_name` to `gadm_4_gid`, `gadm_4_name` | GADM codes and parent areas (GADM levels) |
| `territory` | GADM code of the overseas department or Åland, empty elsewhere (GADM levels) |
| `nuts_version`, `nuts_version_rule` | NUTS version used, and why (NUTS levels) |
| `fips_state`, `state_name`, `state_abbr` | state (`us_county`) |
| `party`, `party_b`, `partyfacts_id` | party, as in SAGE |
| `votes` | votes for the party in all placed units of the area |
| `vote_share` | `votes` divided by `area_votes` |
| `area_votes` | votes for all parties in all placed units of the area |
| `total_votes` | sum of SAGE `total_votes` over the placed units, counting each unit once |
| `reg` | sum of SAGE `reg` (registered voters) over the placed units, counting each unit once |
| `turnout` | `total_votes` divided by `reg`, using only units that have both values |
| `reg_unit_share` | share of placed units that have both `total_votes` and `reg` |
| `n_units` | number of placed units |
| `n_units_polygon` | number of placed units placed by their boundary |
| `polygon_vote_share` | share of `area_votes` from units placed by their boundary |
| `polygon_overlap_mean` | for those units, the vote-weighted average share of the unit boundary inside the area |
| `thiessen_vote_share` | share of `area_votes` from Thiessen units placed by their point |
| `thiessen_cross_share` | share of `area_votes` from Thiessen units whose cell crosses the area boundary (more than 1 percent of the cell lies in another area) |
| `thiessen_spill_share` | vote-weighted share of those cells that lies in other areas |
| `thiessen_nocell_share` | share of `area_votes` from Thiessen units without a cell in SAGE |
| `coarse_location_share` | share of `area_votes` from units that SAGE locates at a larger enclosing unit (`geometry_level` above 0) |
| `max_units_per_point` | the largest number of point-placed units that share one point in the area |
| `n_units_snapped`, `snapped_vote_share` | units, and share of `area_votes`, placed by the 1 km rule |
| `ghs_pop_2015` | GHS-POP population of the area in 2015 |

`thiessen_cross_share` keeps the 1 percent threshold of the first build.
`thiessen_spill_share` is the continuous measure. Use the second one when you
want to weigh how much of each cell lies elsewhere.

## The coverage table

`coverage.parquet` has one row per contest and level. `contest_votes` is the
sum of `votes` over all rows of the contest in the SAGE parquet. I sorted the
votes of each contest into seven groups that add up to `contest_votes`
exactly:

| Column | Votes |
|---|---|
| `votes_placed` | placed in an area of this level (`votes_snapped` is the part placed by the 1 km rule) |
| `votes_outside` | located, but outside every area of this level and more than 1 km from the nearest one |
| `votes_no_area` | located in the country, where the boundary source has no area at this level (overseas cantons, Mayotte arrondissements) |
| `votes_excluded` | located, but left out because the location is known to be wrong |
| `votes_missing` | rows with `geometry_type` "Missing" |
| `votes_no_location` | units with neither coordinates nor a boundary |
| `votes_pool` | the whole contest, when the contest is an abroad, postal, mobile or similar pool |

The same groups exist for units (`units_*`). For an ordinary contest,
`pool_votes_linked` is the number of votes in pool contests of the same year,
election type, round and month, and `pool_types_linked` lists those pools. For
a pool contest, `pool_parent_contest` is the label of the matching ordinary
contest. I link a pool only when exactly one ordinary contest matches. NUTS
rows also carry `nuts_version` and `nuts_version_rule`.

## Checks

For every contest at every level, the seven groups add up to the contest total,
and the party votes in the level dataset add up to `votes_placed`. Both checks
pass for all 4,071 contest and level rows. I compared area results with
official results for these areas:

| Area | Contest | Official | This dataset |
|---|---|---|---|
| Seine-Saint-Denis (`gadm2`) | France 2022 presidential, round 1, Mélenchon | 0.491 | 0.491 |
| Bavaria (`nuts1`) | Germany 2021 Bundestag, list vote, CSU | 0.317 | 0.317 |
| Bahia (`gadm1`) | Brazil 2022 presidential, round 2, Lula | 0.721 | 0.721 |
| Ashanti (`gadm1`) | Ghana 2020 presidential, Akufo-Addo | 0.728 | 0.728 |
| Roubaix (`gadm5`) | France 2022 presidential, round 1, Mélenchon | 0.525 | 0.525 |
| Toulouse (`gadm5`) | France 2022 presidential, round 1, Mélenchon | 0.369 | 0.369 |
| Saint-Denis, Seine-Saint-Denis (`gadm5`) | France 2022 presidential, round 1, Mélenchon | 0.611 | 0.618 |
| Réunion (`gadm2`) | France 2022 presidential, round 1, Mélenchon | 0.403 | 0.403 |
| Guadeloupe (`gadm2`) | France 2022 presidential, round 1, Mélenchon | 0.562 | 0.562 |
| Martinique (`gadm2`) | France 2022 presidential, round 1, Mélenchon | 0.531 | 0.531 |
| Mayotte (`gadm2`) | France 2022 presidential, round 1, Le Pen | 0.427 | 0.427 |

The French official figures come from the Ministry of the Interior files on
data.gouv.fr. Across the 33,808 communes that I could match by name, 98.6
percent have a vote total within 0.5 percent of the official count. Communes
where a polling station of a neighbouring commune sits inside the commune
outline get too many votes, and the neighbour gets too few.

For the United States I compared county totals with the MIT Election Lab
county returns for 2016 and 2020 and with the county file compiled by tonmcg
for 2024. Between 98.3 and 99.2 percent of counties have a total within 2
percent of the reference, and the two-party Democratic share correlates at
0.9995 or more.

## Caveats

1. **Present-day boundaries.** GADM 4.1 boundaries describe administrative
   areas around 2020. I used the same GADM boundaries for every election year.
   An area that a reform merged, split or renamed has its present-day code in
   all years. GADM 4.1 communes for France predate many of the communes
   nouvelles of 2015 to 2019. NUTS is the exception: each year uses the
   version in force.
2. **Placement by station location.** I placed most units by the location of
   the polling station. Voters who live in one area and vote at a station in
   the next area count in the area of the station. This matters most at
   `gadm4` and `gadm5`, where areas are small. The Thiessen cells approximate
   where the voters of a station live. `thiessen_cross_share` is the share of
   the area's votes from stations whose cell extends into another area. When
   this share is high, the area total may include voters from neighbouring
   areas and leave out some voters who live in the area. When the SAGE unit is
   itself an administrative unit, such as a Brazilian municipality from 1998
   to 2010, the cells cross many boundaries even though the unit sits in the
   right area.
3. **Units larger than the area.** I put each unit with a boundary entirely in
   one area. When units are larger than the areas, as with constituencies
   against GADM districts in Ghana, part of each unit belongs to other areas.
   `polygon_overlap_mean` is the size of this problem for each area.
4. **Coarse locations.** SAGE gives some units the location of a larger unit,
   for example the centre of a commune for each of the polling stations in it.
   I put all such units in the area that contains that one point. At a finer
   level than the location, these placements are wrong. Use
   `coarse_location_share` and `max_units_per_point` to find these areas.
5. **Partial vote counts.** Postal, abroad and other votes without a location
   are not in the area totals. In countries with many postal votes, area vote
   shares are shares of the in-person vote. Check `votes_missing` and
   `pool_votes_linked` in the coverage table before comparing area shares with
   official totals.
6. **Territories outside GADM countries.** Apart from the French overseas
   departments and Åland, I kept GADM's country outlines. Points in the West
   Bank (Israel), Western Sahara (Morocco), Crimea (Russia), the Cocos Islands
   (Australia) and the Halaib Triangle (Egypt) are outside their country at
   the GADM levels.
7. **Connecticut.** The 2024 Census county file uses the nine Connecticut
   planning regions instead of the eight historical counties.
8. **Units that share every name and point.** In some countries two or more
   SAGE units have the same names and the same point inside one contest, for
   example several polling tables in one school in Uruguay, the Philippines
   and South Korea. I treated each such group as one unit. `n_units` counts
   the group once. For `total_votes` and `reg` I added the different values
   found in the group. The sum is correct when the units in the group have
   different totals and too low when two of them have the same total. Votes
   for each party are not affected.

## The point crosswalk

`../crosswalk_2026_10_v2.parquet` has one row for every distinct combination of
country, year, latitude and longitude in SAGE. It replaces
`crosswalk_2026_10.parquet` from the first build, which is still in place.

| Column | Meaning |
|---|---|
| `country`, `year`, `latitude`, `longitude` | the SAGE point |
| `gadm_1_gid` to `gadm_5_name` | GADM 4.1 area that holds the point, levels 1 to 5 (`gid`, `hasc`, `name`) |
| `iso_3166_2` | ISO 3166-2 code of the GADM level 1 area, where GADM gives one |
| `gadm_territory` | GADM code of the overseas department or Åland |
| `gadm_in_country` | true when the point lies inside an area of its own country |
| `gadm_outside_km` | for a point outside, the approximate distance to the country outline in kilometres |
| `gadm_snap_km`, `gadm_snapped_levels` | for a point moved by the 1 km rule, the distance to the area it went to and the GADM levels filled that way |
| `nuts_version`, `nuts_version_rule` | NUTS version used for this year, and why |
| `nuts_1_id` to `nuts_3_name` | NUTS area that holds the point |
| `nuts_snap_km`, `nuts_snapped_levels` | the same as `gadm_snap_km` for NUTS |
| `fips_state`, `fips_county`, `county_snap_km` | state and county FIPS codes (United States), and the 1 km rule distance |

GADM 4.1 files Hong Kong inside China as one level 1 area. For Hong Kong,
`gadm_1` holds the 18 districts (GADM level 2 of China). Kosovo uses the GADM
code XKO.
