Package index
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_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()deprecated - 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()superseded - 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_creg_frac() - 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()superseded - 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_min_dist() - Add minimum distance data to your data frame
-
add_nmc() - Add Correlates of War National Military Capabilities Data
-
add_peace_years()superseded - Add Peace Years to Your Conflict Data
-
add_rugged_terrain() - Add rugged terrain information to a data frame
-
add_sdp_gdp()deprecated - 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
-
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
-
declare_attributes() - Declare peacesciencer-specific attributes to data
-
download_extdata() - Download Some Extra Data for Peace Science Research
-
ps_cite() - Get
BibTeXEntries 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
-
archigossums - Archigos Yearly Leader Turnover: A Summary
-
atop_alliance - Alliance Treaty Obligations and Provisions (ATOP) Project Data (v. 5.1)
-
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)
-
creg - Composition of Religious and Ethnic Groups (CREG) Fractionalization/Polarization Estimates
-
cow_allianceccode_democracygwcode_democracycow_sdp_gdpgw_sdp_gdpcow_gw_yearsgw_cow_years - Data sets that have been deprecated
-
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
-
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)
-
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
BibTeXData 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
-
terrthreat - Estimates from a Random Item Response Model of External Territorial Threat, 1816-2010
-
tss_rivalries - Thompson et al. (2021) Strategic Rivalries, 1494-2020
-
ucdp_acd - UCDP Armed Conflict Data (ACD) (v. 25.1)
-
ucdp_onsets - UCDP Onset Data (v. 19.1)