Every two years since 2015 a mock general election has been held among 8th, 9th and 10th graders in Denmark. It is voluntary for the schools to participate in the elections. More info at Skolevalg.dk (in Danish).
The skolevalg.csv
data file consists of the following variables:
date
= Date of the school electionyear
= Year of the school electionschool
= Schoolschool_id
= ID of the school (missing until 2024)party_s
= Number of votes for the Social Democratic Partyparty_rv
= Number of votes for the Social Liberal Partyparty_kf
= Number of votes for the Convervative People's Partyparty_nb
= Number of votes for the New Right (only 2017-2021)party_sf
= Number of votes for the Socialist People's Partyparty_vegan
= Number of votes for the Vegan Party (only 2021)party_la
= Number of votes for the Liberal Allianceparty_kd
= Number of votes for the Christian Democrats (only 2015 and 2019-2021)party_m
= Number of votes for the Moderates (from 2024)party_df
= Number of votes for the Danish People's Partyparty_v
= Number of votes for the Liberal Partyparty_dd
= Number of votes for the Denmark Democrats (from 2024)party_el
= Number of votes for the Red-Green Allianceparty_alt
= Number of votes for the Alternative (from 2017)blank
= Number of blank votes (missing from 2024)invalid
= Number of invalid votesnot_voted
= Number of students that have not voted (missing from 2024)valid
= Number of valid voteselectorate
= Electorate (missing from 2024)municipality
= Municipality where the school is locatedmunicipality_id
= ID of the municipality where the school is locatedzip_code
= Zip code of the schoolregion
= Region where the school is locatedregion_id
= ID of the region where the school is located
The following command will load the data into R:
read.csv(url("https://raw.githubusercontent.com/Straubinger/skolevalg/master/skolevalg.csv"))