A repository for models of local election results at local authority level. The only model I've got so far is written in Stan - analysis is in Python in a Jupyter notebook.
To run the notebook you'll need to have the following python packages installed:
- pandas
- numpy
- matplotlib
- pystan
- arviz
The notebook downloads most of the data it needs automatically, but unfortunately this wasn't possible for all predictors. Earnings data must be downloaded to data/data_in/earning_data.csv
from here and population data must be downloaded to data/data_in/population_estimates.xls
from here