Skip to content

Commit

Permalink
add/update
Browse files Browse the repository at this point in the history
  • Loading branch information
svmiller committed Mar 11, 2024
1 parent 0a8656c commit d2e2fe5
Show file tree
Hide file tree
Showing 6 changed files with 239 additions and 4 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Additions include:

- `DCE12`: a data set on domestic conflict events in 2012, useful for teaching about regression of count data.
- `EBJ`: a data set on the economic benefits of post-conflict justice institutions.
- `states_war`: a data set on state performance in inter-state war.

Updates include:

Expand Down
6 changes: 4 additions & 2 deletions R/rd-EBJ.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ NULL
#' \item{\code{fdi}}{a variable on net FDI inflows over a 10-year period after a conflict (in millions USD)}
#' \item{\code{econ_size}}{GDP, as an estimate of economic size}
#' \item{\code{econ_devel}}{GDP per capita, as an estimate of economic development}
#' \item{\code{econ_growth}}{GDP per capita change, as an estimate of economic growth}
#' \item{\code{kaopen}}{KAOPEN index score, as an estimate of capital openness}
#' \item{\code{xr}}{exchange rate fluctuations, as an indicator of exchange rate instability}
#' \item{\code{lf}}{labor force size}
#' \item{\code{lifeexp}}{average life expectancy for women, in years}
#' }
#'
Expand All @@ -24,8 +26,8 @@ NULL
#' Data are taken Appell and Loyle's (2012) replication data set. Users should
#' read their article in *Journal of Peace Research* for more information about
#' the topic, the stake, and how the data were collected. This is just a simple,
#' reduced form of their data that is minimally sufficient for reproducing the
#' first model of their Table I.
#' reduced form of the data they make available that is minimally sufficient for
#' reproducing the first model of their Table I.
#'
#' @references
#'
Expand Down
113 changes: 113 additions & 0 deletions R/rd-states_war.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
#' @importFrom tibble tibble
NULL

#' State Performance in Inter-State Wars
#'
#' A data set on state performance in inter-state wars. This data is useful for
#' evaluating Valentino et al.'s (2010) "Bear Any Burden" analysis using more
#' current data.
#'
#' @format A data frame with 17 variables.
#' \describe{
#' \item{\code{micnum}}{a numeric for the confrontation code}
#' \item{\code{ccode}}{a numeric for the Correlates of War state code}
#' \item{\code{stdate}}{a character vector communicating participant start date. See details for more.}
#' \item{\code{enddate}}{a character vector communicating participant start date. See details for more.}
#' \item{\code{sidea}}{a numeric vector communicating whether participant was on side that initiated confrontation}
#' \item{\code{hiact}}{a numeric vector communicating highest action during confrontation}
#' \item{\code{fatalmin}}{a numeric vector for minimum estimated fatalities for participant}
#' \item{\code{fatalmax}}{a numeric vector for maximum estimated fatalities for participant}
#' \item{\code{oppfatalmin}}{a numeric vector for minimum estimated fatalities by participant against opponents}
#' \item{\code{oppfatalmax}}{a numeric vector for maximum estimated fatalities by participant against opponents}
#' \item{\code{milex}}{an estimate of military expenditures (in thousands)}
#' \item{\code{milper}}{an estimate of the size of military personnel (in thousands) for the state}
#' \item{\code{cinc}}{The Composite Index of National Capability ("CINC") score}
#' \item{\code{tpop}}{an estimate of the total population size of the state (in thousands)}
#' \item{\code{v2x_polyarchy}}{the Varieties of Democracy "polyarchy" estimate}
#' \item{\code{polity2}}{the the \code{polity2} score from the Polity project}
#' \item{\code{xm_qudsest}}{an extension of the Unified Democracy Scores (UDS) estimates, made possibly by the \pkg{QuickUDS} package from Xavier Marquez.}
#' }
#'
#' @details
#'
#' Start date and end date are in "MM/D(D)/YYYY" format. You can extract this
#' information into multiple columns with a \code{separate} function from the
#' \pkg{tidyr} package. This is mostly for convenience. Be mindful of two things:
#' 1) Dates are dates of first and last action, and not necessarily the escalation
#' to war, per se. 2) dates can be "missing". These are -9s, and are commonplace
#' when archival research can't pinpoint an exact day something happened.
#'
#' Observations select at the *confrontation*-level where maximum fatalities are
#' greater than 1,000 and at the *participant*-level where 1) the participant
#' engaged in at least an attack during this confrontation and 2) there are no
#' instances where a participant dropped in/out on the same side of a
#' multilateral confrontation or switched sides. For illustration's sake, the
#' Taiwan Straits Crises saw several appearances by the United States, but only
#' one instance (for six days in Feb. 1953) where the U.S. engaged in an attack.
#' World War II is a classic case of participants switching sides (France did
#' so three times), but it also happened in the War of Latvian Independence as
#' well (MIC#2604). The War of Attrition also saw the Russians reappear twice.
#' Cases like these aren't included, mostly for convenience sake. In total, nine
#' cases with 1,000 maximum fatalities or more at the confrontation-level are
#' excluded because of this. Of these nine cases, World War II and the Vietnam
#' War are the most conspicuous by their absence. Data come from version 1.01 of
#' the Militarized Interstate Confrontation data.
#'
#' Opponent fatalities are strictly dyadic and are derived from the Militarized
#' Interstate Events data.
#'
#' Capabilities and democracy data come from \pkg{peacesciencer} for a forthcoming
#' v. 1.2.0 release. See package for more information, though references are
#' also included below. Variables are mostly lagged to the year prior to the
#' participant observation year. However, there are several cases in the data
#' that are born into war (see: India, Pakistan, North and South Korea, North
#' and South Vietnam). In cases of missing data, information from the observation
#' year is used.
#'
#' @references
#'
#' Coppedge, Michael, John Gerring, Carl Henrik Knutsen, Staffan I. Lindberg,
#' Jan Teorell, David Altman, Michael Bernhard, M. Steven Fish, Adam Glynn,
#' Allen Hicken, Anna Luhrmann, Kyle L. Marquardt, Kelly McMann, Pamela
#' Paxton, Daniel Pemstein, Brigitte Seim, Rachel Sigman, Svend-Erik
#' Skaaning, Jeffrey Staton, Agnes Cornell, Lisa Gastaldi, Haakon Gjerlow,
#' Valeriya Mechkova, Johannes von Romer, Aksel Sundtrom, Eitan Tzelgov,
#' Luca Uberti, Yi-ting Wang, Tore Wig, and Daniel Ziblatt. 2020.
#' "V-Dem Codebook v10" Varieties of Democracy (V-Dem) Project.
#'
#' Gibler, Douglas M., and Steven V. Miller. Forthcoming. “The Militarized
#' Interstate Events (MIE) Dataset, 1816–2014.” Conflict Management and Peace
#' Science.
#'
#' Gibler, Douglas M., and Steven V. Miller. 2023. “The Militarized Interstate
#' Confrontation Dataset, 1816-2014.” Journal of Conflict Resolution 68(2–3):
#' 562–86
#'
#' Marshall, Monty G., Ted Robert Gurr, and Keith Jaggers. 2017.
#' "Polity IV Project: Political Regime Characteristics and Transitions,
#' 1800-2017." Center for Systemic Peace.
#'
#' Marquez, Xavier, "A Quick Method for Extending the Unified Democracy
#' Scores" (March 23, 2016). \doi{10.2139/ssrn.2753830}
#'
#' Miller Steven V. 2022. “peacesciencer: An R Package for Quantitative Peace
#' Science Research.” Conflict Management and Peace Science, 39(6), 755–779.
#' \doi{10.1177/07388942221077926}
#'
#' Pemstein, Daniel, Stephen Meserve, and James Melton. 2010. "Democratic
#' Compromise: A Latent Variable Analysis of Ten Measures of Regime Type."
#' *Political Analysis* 18(4): 426-449.
#'
#' Singer, J. David, Stuart Bremer, and John Stuckey. (1972). "Capability
#' Distribution, Uncertainty, and Major Power War, 1820-1965." in Bruce Russett
#' (ed) Peace, War, and Numbers, Beverly Hills: Sage, 19-48.
#'
#' Singer, J. David. 1987. "Reconstructing the Correlates of War Dataset on
#' Material Capabilities of States, 1816-1985" International Interactions,
#' 14: 115-32.
#'
#' Valentino, Benjamin Al, Paul K. Huth, and Sarah E. Croco. 2010. "Bear Any
#' Burden? How Democracies Minimize the Costs of War." Journal of Politics
#' 72(2): 528-544
#'
"states_war"
Binary file added data/states_war.rda
Binary file not shown.
6 changes: 4 additions & 2 deletions man/EBJ.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions man/states_war.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2e2fe5

Please sign in to comment.