comparative-politics

Installation
SKILL.md

Comparative Politics — Cross-National Panel Analysis

When to Use

Use this skill when you need to:

  • Download and merge the Quality of Government (QoG) standard dataset, Polity 5 scores, and Freedom House annual ratings into a unified country-year panel
  • Classify countries into regime types (autocracy, hybrid/anocracy, democracy) using Polity 5 thresholds, and track transitions over time
  • Run panel OLS with country and year fixed effects using the linearmodels package (handles the Frisch-Waugh-Lovell within transformation efficiently)
  • Perform Hausman test to choose between fixed effects and random effects models
  • Detect democratic backsliding as a rolling 3-year change in Polity score
  • Produce Lipset-style scatter plots (GDP per capita vs. democracy score) with regional coloring
  • Estimate multilevel models where countries are nested within regions

This skill covers exploratory analysis, static regression, and dynamic models. For time-series specific methods (cointegration, error correction), use a dedicated time-series skill.

Installs
9
GitHub Stars
38
First Seen
Mar 30, 2026