feat: add axis classifier with party ideology reference data

classify_axes() correlates per-party PCA positions against party_ideologies.csv
to assign honest dynamic labels (Links-Rechts, Coalitie-Oppositie, etc.)
instead of always assuming the first PCA axis is left-right.
This commit is contained in:
2026-03-29 01:00:55 +01:00
parent 23849c9cb6
commit 5ec1f7af75
4 changed files with 447 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
window_id,party
2012,VVD
2012,PvdA
2013,VVD
2013,PvdA
2014,VVD
2014,PvdA
2015,VVD
2015,PvdA
2016,VVD
2016,PvdA
2017,VVD
2017,CDA
2017,D66
2017,ChristenUnie
2018,VVD
2018,CDA
2018,D66
2018,ChristenUnie
2019,VVD
2019,CDA
2019,D66
2019,ChristenUnie
2020,VVD
2020,CDA
2020,D66
2020,ChristenUnie
2021,VVD
2021,CDA
2021,D66
2021,ChristenUnie
2022,VVD
2022,D66
2022,CDA
2022,ChristenUnie
2023,VVD
2023,D66
2023,CDA
2023,ChristenUnie
2024,PVV
2024,VVD
2024,NSC
2024,BBB
2025,PVV
2025,VVD
2025,NSC
2025,BBB
2026,PVV
2026,VVD
2026,NSC
2026,BBB
1 window_id party
2 2012 VVD
3 2012 PvdA
4 2013 VVD
5 2013 PvdA
6 2014 VVD
7 2014 PvdA
8 2015 VVD
9 2015 PvdA
10 2016 VVD
11 2016 PvdA
12 2017 VVD
13 2017 CDA
14 2017 D66
15 2017 ChristenUnie
16 2018 VVD
17 2018 CDA
18 2018 D66
19 2018 ChristenUnie
20 2019 VVD
21 2019 CDA
22 2019 D66
23 2019 ChristenUnie
24 2020 VVD
25 2020 CDA
26 2020 D66
27 2020 ChristenUnie
28 2021 VVD
29 2021 CDA
30 2021 D66
31 2021 ChristenUnie
32 2022 VVD
33 2022 D66
34 2022 CDA
35 2022 ChristenUnie
36 2023 VVD
37 2023 D66
38 2023 CDA
39 2023 ChristenUnie
40 2024 PVV
41 2024 VVD
42 2024 NSC
43 2024 BBB
44 2025 PVV
45 2025 VVD
46 2025 NSC
47 2025 BBB
48 2026 PVV
49 2026 VVD
50 2026 NSC
51 2026 BBB
+23
View File
@@ -0,0 +1,23 @@
party,left_right,progressive
VVD,0.65,0.10
PvdA,-0.70,0.75
SP,-0.90,0.50
CDA,0.25,-0.45
D66,-0.10,0.85
GroenLinks,-0.70,0.90
GL,-0.70,0.90
GroenLinks-PvdA,-0.70,0.82
ChristenUnie,0.10,-0.55
SGP,0.35,-0.95
PVV,0.90,-0.50
DENK,-0.40,0.55
50Plus,-0.05,-0.10
FVD,0.90,-0.75
PvdD,-0.60,0.85
Volt,-0.20,0.80
JA21,0.70,-0.30
BBB,0.50,-0.35
NSC,0.20,-0.20
Nieuw Sociaal Contract,0.20,-0.20
BVNL,0.85,-0.55
Bij1,-0.90,0.90
1 party left_right progressive
2 VVD 0.65 0.10
3 PvdA -0.70 0.75
4 SP -0.90 0.50
5 CDA 0.25 -0.45
6 D66 -0.10 0.85
7 GroenLinks -0.70 0.90
8 GL -0.70 0.90
9 GroenLinks-PvdA -0.70 0.82
10 ChristenUnie 0.10 -0.55
11 SGP 0.35 -0.95
12 PVV 0.90 -0.50
13 DENK -0.40 0.55
14 50Plus -0.05 -0.10
15 FVD 0.90 -0.75
16 PvdD -0.60 0.85
17 Volt -0.20 0.80
18 JA21 0.70 -0.30
19 BBB 0.50 -0.35
20 NSC 0.20 -0.20
21 Nieuw Sociaal Contract 0.20 -0.20
22 BVNL 0.85 -0.55
23 Bij1 -0.90 0.90