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_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 dyad-year or state-year data frame

add_ccode_to_gw()

Add Correlates of War state system codes to dyad-year or state-year data with Gleditsch-Ward state codes.

add_contiguity()

Add Correlates of War direct contiguity information to a dyad-year or state-year data frame

add_cow_alliance()

Add Correlates of War alliance data to a dyad-year data frame

add_cow_majors()

Add Correlates of War major power information to a dyad-year or state-year 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 dyad-year or state-year 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 your dyad-year or state-year data

add_democracy()

Add democracy information to dyad-year or state-year data.

add_gml_mids()

Add Gibler-Miller-Little (GML) Militarized Interstate Dispute (MID) data to dyad-year data frame

add_gwcode_to_cow()

Add Gleditsch-Ward state system codes to dyad-year or state-year 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_minimum_distance()

Add minimum distance data to a dyad-year or state-year 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 dyad-year or state-year data frame

add_sdp_gdp()

Add (Surplus and Gross) Domestic Product 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

Other Functions

These are miscellaneous functions also included in this package.

ps_cite()

Get BibTeX Entries Associated with `peacesciencer` Data and Functions

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.

archigos

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

atop_alliance

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

capitals

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

ccode_democracy

Democracy data for all Correlates of War states

cow_alliance

Correlates of War directed dyad-year alliance data

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

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

cow_mindist

The Minimum Distance Between States in the Correlates of War System, 1946-2015

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_ndy

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

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

gml_dirdisp

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

gml_mid_ddydisps

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

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, 1946-2015

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

maoz_powers

Zeev Maoz' Regional/Global Power Data

ps_bib

A BibTeX Data Frame of Citations

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)