Functions that Create Data

The following functions in peacesciencer create the base data of interest to a researcher, to which the researcher can use follow-up functions afterward to either add information and/or remove rows.

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

Functions that Add/Merge/Filter Data

The following functions are called after the base data are created. These add various indicators of interest to the researcher and/or subset the base data to a handful of rows that the user deems appropriate for analysis.

add_archigos()

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

add_atop_alliance()

Add Alliance Treaty Obligations and Provisions (ATOP) alliance data to a dyad-year data frame

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-Ward state codes.

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

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 to dyad-year data frame

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) data to a data frame

add_gwcode_to_cow()

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

add_igos()

Add Correlates of War international governmental organizations (IGOs) data to dyad-year or state-year data.

add_lead()

Add (Select) Leader Experience and Attribute Descriptions (LEAD) Data to Leader-Year or Leader-Dyad-Year 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

add_spells()

Add "Spells" to Data

add_strategic_rivalries()

Add Thompson and Dreyer's (2012) strategic rivalry data to dyad-year data frame

add_ucdp_acd()

Add UCDP Armed Conflict Data to state-year data frame

add_ucdp_onsets()

Add UCDP onsets to state-year data

filter_prd()

Filter dyad-year data to include just politically relevant dyads

whittle_conflicts_duration() wc_duration()

Whittle Duplicate Conflict-Years by Conflict Duration

whittle_conflicts_fatality() wc_fatality()

Whittle Duplicate Conflict-Years by Highest Fatality

whittle_conflicts_hostility() wc_hostility()

Whittle Duplicate Conflict-Years by Conflict Hostility

whittle_conflicts_jds() wc_jds()

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

whittle_conflicts_onsets() wc_onsets()

Whittle Unique Conflict Onset-Years from Conflict-Year Data

whittle_conflicts_reciprocation() wc_recip()

Whittle Duplicate Conflict-Years by Conflict Reciprocation

whittle_conflicts_startmonth() wc_stmon()

Whittle Duplicate Conflict-Years by Lowest Start Month

Other Functions

These are miscellaneous functions also included in this package.

declare_attributes()

Declare peacesciencer-specific attributes to data

download_extdata()

Download Some Extra Data for Peace Science Research

ps_cite()

Get BibTeX Entries Associated with peacesciencer Data and Functions

ps_version()

Get Version Information About Data Included in peacesciencer

show_duplicates()

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

Data

These are the data included in peacesciencer. They are used internally for the functions listed above, though a researcher can also call these data objects into the R session if they would like to inspect the data for themselves.

LEAD

(An Abbreviation of) The LEAD Data Set

archigos

Archigos: A (Subset of a) Dataset on Political Leaders

atop_alliance

Alliance Treaty Obligations and Provisions (ATOP) Project Data (v. 5.0)

ccode_democracy

Democracy data for all Correlates of War states

cow_alliance

Correlates of War directed dyad-year alliance data

cow_capitals

A complete list of capitals and capital transitions for Correlates of War state system members

cow_contdir

Correlates of War Direct Contiguity Data (v. 3.2)

cow_ddy

A directed dyad-year data frame of Correlates of War state system members

cow_gw_years

Correlates of War and Gleditsch-Ward states, by year

cow_igo_ndy

Correlates of War Non-Directed Dyad-Year International Governmental Organizations (IGOs) Data

cow_igo_sy

Correlates of War State-Year International Governmental Organizations (IGOs) Data

cow_majors

Correlates of War Major Powers Data (1816-2016)

cow_mid_ddydisps

Directed Dyadic Dispute-Year Data with No Duplicate Dyad-Years (CoW-MID, v. 5.0)

cow_mid_dirdisps

Directed Dyadic Dispute-Year Data (CoW-MID, v. 5.0)

cow_mid_disps

Abbreviated CoW-MID Dispute-level Data (v. 5.0)

cow_mindist

The Minimum Distance Between States in the Correlates of War System, 1886-2019

cow_nmc

Correlates of War National Military Capabilities Data

cow_sdp_gdp

(Surplus and Gross) Domestic Product for Correlates of War States

cow_states

Correlates of War State System Membership Data (1816-2016)

cow_trade_sy

Correlates of War National Trade Data Set (v. 4.0)

cow_war_inter

Correlates of War Inter-State War Data (v. 4.0)

cow_war_intra

Correlates of War Intra-State War Data (v. 4.1)

creg

Composition of Religious and Ethnic Groups (CREG) Fractionalization/Polarization Estimates

false_cow_dyads

False Correlates of War Directed Dyad-Years

false_gw_dyads

False Gleditsch-Ward Directed Dyad-Years

gml_dirdisp

Directed dispute-year data (Gibler, Miller, and Little, 2016)

gml_mid_ddlydisps

Directed Leader-Dyadic Dispute-Year Data with No Duplicate Leader-Dyad-Years (GML, v. 2.2.1, Archigos v. 4.1)

gml_mid_ddydisps

Directed Dyadic Dispute-Year Data with No Duplicate Dyad-Years (GML, v. 2.2.1)

gml_mid_dirleaderdisps

Directed Leader-Dyadic Dispute-Year Data (GML, v. 2.2.1, Archigos v. 4.1)

gml_mid_disps

Abbreviated GML MID Dispute-level Data (v. 2.2.1)

gml_part

Participant Summaries of the GML-MID Data

gw_capitals

A complete list of capitals and capital transitions for Gleditsch-Ward state system members

gw_cow_years

Gleditsch-Ward states and Correlates of War, by year

gw_ddy

A directed dyad-year data frame of Gleditsch-Ward state system members

gw_mindist

The Minimum Distance Between States in the Gleditsch-Ward System, 1886-2019

gw_sdp_gdp

(Surplus and Gross) Domestic Product for Gleditsch-Ward States

gw_states

Gleditsch-Ward (Independent States) System Membership Data (1816-2017)

gwcode_democracy

Democracy data for all Gleditsch-Ward states

hief

Historical Index of Ethnic Fractionalization data

leader_codes

A Data Set of Leader Codes Across Archigos 4.1, Archigos 2.9, and the LEAD Data

lwuf

Leader Willingness to Use Force

maoz_powers

Zeev Maoz' Regional/Global Power Data

ps_bib

A BibTeX Data Frame of Citations

ps_data_version

The Version Numbers for Data Included in peacesciencer

rugged

Rugged/Mountainous Terrain Data

td_rivalries

Thompson and Dreyer's (2012) Strategic Rivalries, 1494-2010

ucdp_acd

UCDP Armed Conflict Data (ACD) (v. 20.1)

ucdp_onsets

UCDP Onset Data (v. 19.1)