R: Tools and Data for Quantitative Peace Science Research

# Tools and Data for Quantitative Peace Science Research

## Documentation for package ‘peacesciencer’ version 1.2.0

- DESCRIPTION file.
- Package NEWS.

## Help Pages

A C D F G H L M P R S T U W

## -- A --

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_cap_dist | 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 (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 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_frac | Add fractionalization/polarization estimates from CREG to a 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_latent_territorial_threat | Add estimated latent territorial threat to a data frame
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_min_dist | 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 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
archigos | Archigos: A (Subset of a) Dataset on Political Leaders
archigossums | Archigos Yearly Leader Turnover: A Summary
atop_alliance | Alliance Treaty Obligations and Provisions (ATOP) Project Data (v. 5.1)

## -- C --

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_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_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)
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
creg | Composition of Religious and Ethnic Groups (CREG) Fractionalization/Polarization Estimates

## -- D --

declare_attributes | Declare 'peacesciencer'-specific attributes to data
download_extdata | Download Some Extra Data for Peace Science Research

## -- F --

false_cow_dyads | False Correlates of War Directed Dyad-Years
false_gw_dyads | False Gleditsch-Ward Directed Dyad-Years
filter_prd | Filter dyad-year data to include just politically relevant dyads

## -- G --

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
grh_arms_races | Conventional Arms Races During Periods of Rivalry
gw_capitals | A complete list of capitals and capital transitions for Gleditsch-Ward state system members
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_states | Gleditsch-Ward (Independent States) System Membership Data (1816-2017)

## -- H --

hief | Historical Index of Ethnic Fractionalization data

## -- L --

LEAD | (An Abbreviation of) The LEAD Data Set
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

## -- M --

maoz_powers | Zeev Maoz' Regional/Global Power Data

## -- P --

ps_bib | A 'BibTeX' Data Frame of Citations
ps_cite | Get 'BibTeX' Entries Associated with 'peacesciencer' Data and Functions
ps_data_version | The Version Numbers for Data Included in 'peacesciencer'
ps_version | Get Version Information About Data Included in 'peacesciencer'

## -- R --

rugged | Rugged/Mountainous Terrain Data

## -- S --

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

## -- T --

td_rivalries | Thompson and Dreyer's (2012) Strategic Rivalries, 1494-2010
terrthreat | Estimates from a Random Item Response Model of External Territorial Threat, 1816-2010
tss_rivalries | Thompson et al. (2021) Strategic Rivalries, 1494-2020

## -- U --

ucdp_acd | UCDP Armed Conflict Data (ACD) (v. 25.1)
ucdp_onsets | UCDP Onset Data (v. 19.1)

## -- W --

wc_duration | Whittle Duplicate Conflict-Years by Conflict Duration
wc_fatality | Whittle Duplicate Conflict-Years by Highest Fatality
wc_hostility | Whittle Duplicate Conflict-Years by Conflict Hostility
wc_jds | Whittle Duplicate Conflict-Years by Just Dropping Something ("JDS")
wc_onsets | Whittle Unique Conflict Onset-Years from Conflict-Year Data
wc_recip | Whittle Duplicate Conflict-Years by Conflict Reciprocation
wc_stmon | Whittle Duplicate Conflict-Years by Lowest Start Month
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