This repository hosts the code used in the research for determining the socio-economic determinants of partisan politics. The project focuses on analyzing how various socio-economic factors contribute to political polarization.
Before you begin, ensure you have the following installed:
- R (latest version)
- Python to create and prepare the dataset
To replicate this work using the prepared dataset, follow these steps:
- Clone the repository:
- Change directory into the project folder:
- Create a new folder named
data
in the project directory: - Download the final dataset from Zenodo and unzip it into the
data
directory.
To perform the analysis:
- Navigate to the
viz
folder: - Run the R script to generate visualizations: Make sure necessary modules are installed.
Here is a visual representation of the project's methodology: