Skip to content

Statistical models of local authority vote shares

Notifications You must be signed in to change notification settings

CampaignLab/la_models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Statistical models of local authority vote shares

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published