igo_dyadic {igoR} | R Documentation |
Extract the Joint Membership of a pair of Countries across IGOs.
Description
Dyadic version of the data. The unit of observation is a dyad of countries. It provides a summary of the joint memberships of two countries across IGOs over time.
Usage
igo_dyadic(country1, country2, year = 1816:2014, ioname = NULL)
Arguments
country1 , country2 |
A state of vector of states to be compared. It could be any valid name or code of a state as specified on states2016. |
year |
Year to be assessed, an integer or an array of year. |
ioname |
Optional. |
Details
This function tries to replicate the information contained in the original
file distributed by The Correlates of War Project (dyadic_format3.dta
).
That file is not included in this package due to its size.
The result is a data.frame
containing the common years of
the states selected via country1, country2, year
by rows.
An additional column dyadid
, computed as (1000*ccode1)+ccode2
is provided
in order to identify relationships.
For each IGO selected via ioname
(or all if the default option has been
used) a column (using lowercase ioname
as identifier) is provided with the
following code system:
Category | Numerical Value |
No Joint Membership | 0 |
Joint Full Membership | 1 |
Missing data | -9 |
State Not System Member | -1 |
See igo_recode_dyadic()
section for an easy way to recode the numerical
values into factors.
If one state in an IGO is a full member but the other is an associate member or observer, that IGO is not coded as a joint membership.
Value
A coded data.frame
representing the years and country dyad
(rows) and the IGOs selected (columns). See Details.
Differences with the original dataset
There are some differences on the results provided by this function and the
original dataset on some IGOs regarding the "Missing Data" (-9
) and
"State Not System Member" (-1
). However it is not clear how to fully
replicate those values.
See Codebook Version 3 IGO Data
Source
Codebook Version 3 IGO Data for full reference.
References
Pevehouse, J. C., Nordstrom, T., McManus, R. W., & Jamison, A. S. (2020). Tracking organizations in the world: The Correlates of War IGO Version 3.0 datasets. Journal of Peace Research, 57(3), 492–503. doi:10.1177/0022343319881175.
See Also
state_year_format3, states2016, igo_search()
.
Examples
usa_esp <- igo_dyadic("USA", "Spain")
nrow(usa_esp)
ncol(usa_esp)
dplyr::tibble(usa_esp)
# Using custom parameters
custom <- igo_dyadic(
country1 = c("France", "Germany"), country2 = c("Sweden", "Austria"),
year = 1992:1993, ioname = "EU"
)
dplyr::glimpse(custom)