Skip to content

About

Notional results for the 2021 Scottish Parliament election on 2026 boundaries

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SP2026 notionals

This repository contains source code used to generate notional election results for the 2021 Scottish Parliament had it been held on 2026 boundaries.

This code relies on data files which I do not have permission to redistribute, and which are not included in this repository.

INPUTS

These data files are as follows:

OUTPUTS

The outputs of this project are a set of CSV files:

  • consty_notionals.csv: a CSV file containing estimated vote counts for 2026 boundaries for all parties which stood candidates in constituency contests, according to the new constituency name, code number. The field SPC22CD concatenates the codes of all "parent" constituencies, and should not be used for joining data sets.
  • list_notionals.csv: as above, but for list contests.
  • intersections_constyvote.csv: a CSV file containing estimated vote counts for all intersections between 2026 and 2021 boundaries. This can be useful to see where particular votes "came from".
  • intersections_listvote.csv: as above, but for list contests.
  • index_of_change.csv: a CSV file containing, for each constituency, an index of change between zero and one, which gives one minus the proportion of the new constituency's population that came from the principal "parent" constituency. If the constituency is unchanged, the value is zero.
  • index_of_change_v2.csv: a CSV file containing, for each constituency, the contribution of the principal "parent" constituency, the number leaving that principal parent constituency, the number joining from other constituencies. The index of change is (leavers + joiners) / (electorate of the principal parent constituency). This figure matches the calculation used by broadcasters since 1983.

REPORT

Finally, there is a report in posts/ which gives a narrative description of the process.

About

Notional results for the 2021 Scottish Parliament election on 2026 boundaries

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages