-
These scripts were written to process and analyse data regarding socio-demographic variables of the candidates for the Zurich parliamentary election, 2018. And, later, to analyse the same variables of the elected politicians.
-
Results based on these scripts were published in the following articles:
- Article that shows how strongly the candidates deviate from the Zurich population regarding socio-demographic variables: Rund 1000 Personen bewerben sich für einen Sitz im Stadtzürcher Parlament – warum sie Zürich trotzdem schlecht abbilden, published 09.01.2018
- Follow-up article that shows how strongly the political parties differ from each other, regarding these variables: Welche Partei stellt die jüngsten Kandidaten? Die wenigsten Frauen? Die meisten Führungskräfte?, published 25.01.2018
- Follow-up article that shows how the elected candidates deviate from the Zurich population even stronger than all the candidates as a group, regarding gender, age and profession: Warum der neue Gemeinderat die Zürcher Bevölkerung schlecht abbildet, published 05.03.2018
-
Data on the distribution of these variables among the candidates were provided by Smartvote for the first article. Complete data for the follow-up articles were available only from January 17th on, and provied by Statistik Stadt Zürich via Open data Zurich. The names of the elected candidates were provided by the city of Zurich. Data on the distribution of the same variables (age, gender, fist name) in the population are provided by Statistik Stadt Zürich via Open Data Zurich, or, regarding polling data on profession, by Statistik Stadt Zürich on request.
-
The semi-automatic and iterative method used to categorize professions is described in the methods part of the articles and, in detail, in the scripts.
-
The scripts calculate buckets for age groups, proportions for gender, age and first name among the candidates and within the population, categorize the professions indicated by the candidates and attributes candidates' zip code to districts.
- The script
gemeinderat.R
determines the districts the candidates of which represent its population in the best / poorest way. And it makes out the most prototypical and the most representative candidate. - The script
gemeinderat_partei.R
determines the same measures by political party.
- The script
-
References
- Data sources: Smartvote, Statistik Stadt Zürich / Open Data Zürich, Stadt Zürich,see point 3. above
- Code: R Core Team (2017), R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria
We exclude liability for any damages or losses that may arise from using the materials made available by NZZ Storytelling. We do not guarantee that the information therein is adequate, complete or up to date.