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.csvmore_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.csvpbop.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.csvdistrict2regions.py - creating regions_1.csv, regions_2.csv, regions_3.csv and regions_4.csvcz_total.csv from regions_1.csvanal.rcreate_data2show.py creates data2show.csvadd_parents.pycz_2017_show.ods