peacesciencer1.2.0 package

Tools and Data for Quantitative Peace Science Research

add_archigos

Add Archigos political leader information to dyad-year and state-year ...

add_atop_alliance

Add Alliance Treaty Obligations and Provisions (ATOP) alliance data to...

add_capital_distance

Add capital-to-capital distance to a data frame

add_ccode_to_gw

Add Correlates of War state system codes to your data with Gleditsch-W...

add_contiguity

Add Correlates of War direct contiguity information to a data frame

add_cow_alliance

Add Correlates of War alliance data to a data frame (DEPRECATED)

add_cow_majors

Add Correlates of War major power information to a data frame

add_cow_mids

Add Correlates of War (CoW) Militarized Interstate Dispute (MID) data ...

add_cow_trade

Add Correlates of War trade data to a data frame

add_cow_wars

Add Correlates of War war data to dyad-year or state-year data frame.

add_creg_fractionalization

Add fractionalization/polarization estimates from CREG to a data frame

add_democracy

Add democracy information to a data frame

add_fpsim

Add dyadic foreign policy similarity measures to your data

add_gml_mids

Add Gibler-Miller-Little (GML) Militarized Interstate Dispute (MID) da...

add_gwcode_to_cow

Add Gleditsch-Ward state system codes to your data with Correlates of ...

add_igos

Add Correlates of War international governmental organizations (IGOs) ...

add_latent_territorial_threat

Add estimated latent territorial threat to a data frame

add_lead

Add (Select) Leader Experience and Attribute Descriptions (LEAD) Data ...

add_lwuf

Add Estimates of Leader Willingness to Use Force to Leader-Year Data

add_minimum_distance

Add minimum distance data to your data frame

add_nmc

Add Correlates of War National Military Capabilities Data

add_peace_years

Add Peace Years to Your Conflict Data

add_rugged_terrain

Add rugged terrain information to a data frame

add_sdp_gdp

Add (Surplus and Gross) Domestic Product Data (DEPRECATED)

add_sim_gdp_pop

Add Simulated GDP, Population, and GDP per Capita Data

add_spells

Add "Spells" to Data

add_strategic_rivalries

Add Thompson et al. (2021) strategic rivalry data to state-year or dya...

add_ucdp_acd

Add UCDP Armed Conflict Data to state-year data frame

add_ucdp_onsets

Add UCDP onsets to state-year data

create_dyadyears

Create dyad-years from state system membership data

create_leaderdays

Create leader-days from leader data

create_leaderdyadyears

Create leader-dyad-years from the Archigos data

create_leaderyears

Create leader-years from leader data

create_statedays

Create state-days from state system membership data

create_stateyears

Create state-years from state system membership data

data-deprecated

Data sets that have been deprecated

declare_attributes

Declare peacesciencer-specific attributes to data

download_extdata

Download Some Extra Data for Peace Science Research

filter_prd

Filter dyad-year data to include just politically relevant dyads

ps_cite

Get BibTeX Entries Associated with peacesciencer Data and Function...

ps_version

Get Version Information About Data Included in peacesciencer

show_duplicates

Show Duplicate Observations in Your Dyad-Year or State-Year Data Frame

whittle_conflicts_duration

Whittle Duplicate Conflict-Years by Conflict Duration

whittle_conflicts_fatality

Whittle Duplicate Conflict-Years by Highest Fatality

whittle_conflicts_hostility

Whittle Duplicate Conflict-Years by Conflict Hostility

whittle_conflicts_jds

Whittle Duplicate Conflict-Years by Just Dropping Something ("JDS")

whittle_conflicts_onsets

Whittle Unique Conflict Onset-Years from Conflict-Year Data

whittle_conflicts_reciprocation

Whittle Duplicate Conflict-Years by Conflict Reciprocation

whittle_conflicts_startmonth

Whittle Duplicate Conflict-Years by Lowest Start Month

These are useful tools and data sets for the study of quantitative peace science. The goal for this package is to include tools and data sets for doing original research that mimics well what a user would have to previously get from a software package that may not be well-sourced or well-supported. Those software bundles were useful the extent to which they encourage replications of long-standing analyses by starting the data-generating process from scratch. However, a lot of the functionality can be done relatively quickly and more transparently in the R programming language.

  • Maintainer: Steve Miller
  • License: GPL-2
  • Last published: 2025-07-17