Package: peacesciencer 1.1.9

peacesciencer: Tools and Data for Quantitative Peace Science Research

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.

Authors:Steve Miller [aut, cre]

peacesciencer_1.1.9.tar.gz
peacesciencer_1.1.9.zip(r-4.5)peacesciencer_1.1.9.zip(r-4.4)peacesciencer_1.1.9.zip(r-4.3)
peacesciencer_1.1.9.tgz(r-4.4-any)peacesciencer_1.1.9.tgz(r-4.3-any)
peacesciencer_1.1.9.tar.gz(r-4.5-noble)peacesciencer_1.1.9.tar.gz(r-4.4-noble)
peacesciencer_1.1.9.tgz(r-4.4-emscripten)peacesciencer_1.1.9.tgz(r-4.3-emscripten)
peacesciencer.pdf |peacesciencer.html
peacesciencer/json (API)
NEWS

# Install 'peacesciencer' in R:
install.packages('peacesciencer', repos = c('https://svmiller.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/svmiller/peacesciencer/issues

Datasets:
  • 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
  • ccode_democracy - Democracy data for all Correlates of War states
  • 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
  • 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
  • cow_mid_ddydisps - Directed Dyadic Dispute-Year Data with No Duplicate Dyad-Years
  • cow_mid_dirdisps - Directed Dyadic Dispute-Year Data
  • cow_mid_disps - Abbreviated CoW-MID Dispute-level Data
  • 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
  • cow_trade_sy - Correlates of War National Trade Data Set
  • cow_war_inter - Correlates of War Inter-State War Data
  • cow_war_intra - Correlates of War Intra-State War Data
  • 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
  • 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_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
  • 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
  • tss_rivalries - Thompson et al. (2021) Strategic Rivalries, 1494-2020
  • ucdp_acd - UCDP Armed Conflict Data
  • ucdp_onsets - UCDP Onset Data

On CRAN:

eugenepeace-science

5.41 score 26 stars 197 scripts 454 downloads 53 exports 87 dependencies

Last updated 2 years agofrom:5be111e7fa. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-winOKNov 16 2024
R-4.5-linuxOKNov 16 2024
R-4.4-winOKNov 16 2024
R-4.4-macOKNov 16 2024
R-4.3-winOKNov 16 2024
R-4.3-macOKNov 16 2024

Exports:add_archigosadd_atop_allianceadd_capital_distanceadd_ccode_to_gwadd_contiguityadd_cow_allianceadd_cow_majorsadd_cow_midsadd_cow_tradeadd_cow_warsadd_creg_fractionalizationadd_democracyadd_fpsimadd_gml_midsadd_gwcode_to_cowadd_igosadd_leadadd_lwufadd_minimum_distanceadd_nmcadd_peace_yearsadd_rugged_terrainadd_sdp_gdpadd_spellsadd_strategic_rivalriesadd_ucdp_acdadd_ucdp_onsetscreate_dyadyearscreate_leaderdayscreate_leaderdyadyearscreate_leaderyearscreate_statedayscreate_stateyearsdeclare_attributesdownload_extdatafilter_prdps_citeps_versionshow_duplicateswc_durationwc_fatalitywc_hostilitywc_jdswc_onsetswc_recipwc_stmonwhittle_conflicts_durationwhittle_conflicts_fatalitywhittle_conflicts_hostilitywhittle_conflicts_jdswhittle_conflicts_onsetswhittle_conflicts_reciprocationwhittle_conflicts_startmonth

Dependencies:abindarmaskpassbase64encbitbit64bootbslibcachemclicliprcodacolorspacecpp11crayoncurldigestdplyrevaluatefansifarverfastmapfontawesomeforcatsfsgenericsgeosphereggplot2gluegtablehavenhighrhmshtmltoolshttrisobandjquerylibjsonliteknitrlabelinglabelledlatticelifecyclelme4magrittrMASSMatrixmemoisemgcvmimeminqamunsellnlmenloptropensslpillarpkgconfigprettyunitsprogresspurrrR6rappdirsRColorBrewerRcppRcppEigenreadrrlangrmarkdownsassscalesspstevemiscstringistringrsystibbletidyrtidyselecttinytextzdbutf8vctrsviridisLitevroomwithrxfunyaml

Readme and manuals

Help Manual

Help pageTopics
Add Archigos political leader information to dyad-year and state-year dataadd_archigos
Add Alliance Treaty Obligations and Provisions (ATOP) alliance data to a dyad-year data frameadd_atop_alliance
Add capital-to-capital distance to a data frameadd_capital_distance
Add Correlates of War state system codes to your data with Gleditsch-Ward state codes.add_ccode_to_gw
Add Correlates of War direct contiguity information to a data frameadd_contiguity
Add Correlates of War alliance data to a data frameadd_cow_alliance
Add Correlates of War major power information to a data frameadd_cow_majors
Add Correlates of War (CoW) Militarized Interstate Dispute (MID) data to dyad-year data frameadd_cow_mids
Add Correlates of War trade data to a data frameadd_cow_trade
Add Correlates of War war data to dyad-year or state-year data frame.add_cow_wars
Add fractionalization/polarization estimates from CREG to a data frameadd_creg_fractionalization
Add democracy information to a data frameadd_democracy
Add dyadic foreign policy similarity measures to your dataadd_fpsim
Add Gibler-Miller-Little (GML) Militarized Interstate Dispute (MID) data to a data frameadd_gml_mids
Add Gleditsch-Ward state system codes to your data with Correlates of War state codes.add_gwcode_to_cow
Add Correlates of War international governmental organizations (IGOs) data to dyad-year or state-year data.add_igos
Add (Select) Leader Experience and Attribute Descriptions (LEAD) Data to Leader-Year or Leader-Dyad-Year Dataadd_lead
Add Estimates of Leader Willingness to Use Force to Leader-Year Dataadd_lwuf
Add minimum distance data to your data frameadd_minimum_distance
Add Correlates of War National Military Capabilities Dataadd_nmc
Add Peace Years to Your Conflict Dataadd_peace_years
Add rugged terrain information to a data frameadd_rugged_terrain
Add (Surplus and Gross) Domestic Product Dataadd_sdp_gdp
Add "Spells" to Dataadd_spells
Add Thompson and Dreyer's (2012) strategic rivalry data to dyad-year data frameadd_strategic_rivalries
Add UCDP Armed Conflict Data to state-year data frameadd_ucdp_acd
Add UCDP onsets to state-year dataadd_ucdp_onsets
Archigos: A (Subset of a) Dataset on Political Leadersarchigos
Alliance Treaty Obligations and Provisions (ATOP) Project Data (v. 5.0)atop_alliance
Democracy data for all Correlates of War statesccode_democracy
A complete list of capitals and capital transitions for Correlates of War state system memberscow_capitals
Correlates of War Direct Contiguity Data (v. 3.2)cow_contdir
A directed dyad-year data frame of Correlates of War state system memberscow_ddy
Correlates of War and Gleditsch-Ward states, by yearcow_gw_years
Correlates of War Non-Directed Dyad-Year International Governmental Organizations (IGOs) Datacow_igo_ndy
Correlates of War State-Year International Governmental Organizations (IGOs) Datacow_igo_sy
Correlates of War Major Powers Data (1816-2016)cow_majors
Directed Dyadic Dispute-Year Data with No Duplicate Dyad-Years (CoW-MID, v. 5.0)cow_mid_ddydisps
Directed Dyadic Dispute-Year Data (CoW-MID, v. 5.0)cow_mid_dirdisps
Abbreviated CoW-MID Dispute-level Data (v. 5.0)cow_mid_disps
The Minimum Distance Between States in the Correlates of War System, 1886-2019cow_mindist
Correlates of War National Military Capabilities Datacow_nmc
(Surplus and Gross) Domestic Product for Correlates of War Statescow_sdp_gdp
Correlates of War State System Membership Data (1816-2016)cow_states
Correlates of War National Trade Data Set (v. 4.0)cow_trade_sy
Correlates of War Inter-State War Data (v. 4.0)cow_war_inter
Correlates of War Intra-State War Data (v. 4.1)cow_war_intra
Create dyad-years from state system membership datacreate_dyadyears
Create leader-days from leader datacreate_leaderdays
Create leader-dyad-years from the Archigos datacreate_leaderdyadyears
Create leader-years from leader datacreate_leaderyears
Create state-days from state system membership datacreate_statedays
Create state-years from state system membership datacreate_stateyears
Composition of Religious and Ethnic Groups (CREG) Fractionalization/Polarization Estimatescreg
Declare 'peacesciencer'-specific attributes to datadeclare_attributes
Download Some Extra Data for Peace Science Researchdownload_extdata
False Correlates of War Directed Dyad-Yearsfalse_cow_dyads
False Gleditsch-Ward Directed Dyad-Yearsfalse_gw_dyads
Filter dyad-year data to include just politically relevant dyadsfilter_prd
Conventional Arms Races During Periods of Rivalrygrh_arms_races
A complete list of capitals and capital transitions for Gleditsch-Ward state system membersgw_capitals
Gleditsch-Ward states and Correlates of War, by yeargw_cow_years
A directed dyad-year data frame of Gleditsch-Ward state system membersgw_ddy
The Minimum Distance Between States in the Gleditsch-Ward System, 1886-2019gw_mindist
(Surplus and Gross) Domestic Product for Gleditsch-Ward Statesgw_sdp_gdp
Gleditsch-Ward (Independent States) System Membership Data (1816-2017)gw_states
Democracy data for all Gleditsch-Ward statesgwcode_democracy
Historical Index of Ethnic Fractionalization datahief
(An Abbreviation of) The LEAD Data SetLEAD
A Data Set of Leader Codes Across Archigos 4.1, Archigos 2.9, and the LEAD Dataleader_codes
Leader Willingness to Use Forcelwuf
Zeev Maoz' Regional/Global Power Datamaoz_powers
A 'BibTeX' Data Frame of Citationsps_bib
Get 'BibTeX' Entries Associated with 'peacesciencer' Data and Functionsps_cite
The Version Numbers for Data Included in 'peacesciencer'ps_data_version
Get Version Information About Data Included in 'peacesciencer'ps_version
Rugged/Mountainous Terrain Datarugged
Show Duplicate Observations in Your Dyad-Year or State-Year Data Frameshow_duplicates
Thompson and Dreyer's (2012) Strategic Rivalries, 1494-2010td_rivalries
Thompson et al. (2021) Strategic Rivalries, 1494-2020tss_rivalries
UCDP Armed Conflict Data (ACD) (v. 20.1)ucdp_acd
UCDP Onset Data (v. 19.1)ucdp_onsets
Whittle Duplicate Conflict-Years by Conflict Durationwc_duration whittle_conflicts_duration
Whittle Duplicate Conflict-Years by Highest Fatalitywc_fatality whittle_conflicts_fatality
Whittle Duplicate Conflict-Years by Conflict Hostilitywc_hostility whittle_conflicts_hostility
Whittle Duplicate Conflict-Years by Just Dropping Something ("JDS")wc_jds whittle_conflicts_jds
Whittle Unique Conflict Onset-Years from Conflict-Year Datawc_onsets whittle_conflicts_onsets
Whittle Duplicate Conflict-Years by Conflict Reciprocationwc_recip whittle_conflicts_reciprocation
Whittle Duplicate Conflict-Years by Lowest Start Monthwc_stmon whittle_conflicts_startmonth