Skip to content

ChrisPayneHome/Voter-Segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voter Segmentation Analysis

pca_plot

Table of Contents

  1. Introduction
  2. Data
  3. Markdown
  4. HTML

Introduction

A project using unsupervised machine learning to segment voters. This project was also featured on my blog here.

Data

The data used for this project is the latest edition of the British Election Study (BES) panel survey. This data is stored as a Stata file (.dta) and to read into R you'll need to use functions from the haven package. Because of this, many of the fields in the data are labelled. As part of our data cleaning process we extract the labels from some of these fields and replace the values with these labels.

This project only used a small number of the variables as I felt it was the only fields that were necessary. Feel free to explore the data!

Markdown

The Voter-Segmentation .html and .Rmd files contain all the code written for this project. The .Rmd file is the raw Rmarkdown document, while the .html file is the rendered version of the Rmd file.

HTML

This folder contains the html code for the two html widgets that are used in the article, as well as some accompanying JS code.

About

A project using unsupervised machine learning to segment voters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published