Software

contentiousR logo

contentiousR

An R package that provides tools and datasets for contentious politics and civil conflict research. It offers a flexible workflow for building state panels and enriching them with socioeconomic, political, and conflict indicators, using either the Correlates of War (COW) or Gleditsch-Ward (GW) country coding schemes.

🌐 Website 💻 GitHub 📄 Paper (SSRN)

Installation

# install.packages("remotes")
remotes::install_github("rguseinov/contentiousR")

Example

library(contentiousR)

panel <- build_states_panel(start_year = 1990, end_year = 2015, coding_system = "cow") |>
  add_gdp() |>
  add_vdem(vars = c("v2x_polyarchy", "v2x_libdem")) |>
  add_conflict(dataset = "navco2.1") |>
  add_leader_data(dataset = "archigos")

Citation

Guseinov, R. (2026). contentiousR: An R package for contentious politics and civil conflict research [Preprint]. SSRN. https://doi.org/10.2139/ssrn.7506799