Position of districts, towns, regions in a political space based on the elections results. Mathod: Weighted MDS, rotated by PCA
cz_2017_okrsky_neuplny.csv
- manually from pst4p.csv
(pivot table) and pst4.csv
more_info_okrsky.py
- using info from previous elections (ep_2014_okrsky.csv
)cz_2017_okrsky.csv
using https://volby.cz/pls/ps2017/ps311?xjazyk=CZ&xkraj=2&xobec=500194csv2matrix_db_selected_voted.py
- distance matrix based on sample: raw_matrix_voted.csv
pbop.csv
+ correct manually Praha’s subregion id, using e.g. https://volby.cz/pls/ps2017/ps34?xjazyk=CZ&xkraj=4&xobec=554791districts.csv
manually from cz_2017_okrsky.csv
district2regions.py
- creating regions_1.csv
, regions_2.csv
, regions_3.csv
and regions_4.csv
cz_total.csv
from regions_1.csv
anal.r
create_data2show.py
creates data2show.csv
add_parents.py
cz_2017_show.ods