Learn R Programming

peacesciencer (version 0.4.0)

add_nmc: Add Correlates of War National Military Capabilities Data

Description

add_nmc() allows you to add the Correlates of War National Material Capabilities data to dyad-year or state-year data.

Usage

add_nmc(data)

Arguments

data

a dyad-year data frame (either "directed" or "non-directed") or a state-year data frame.

Value

add_nmc() takes a dyad-year data frame or state-year data frame and adds information about the national material capabilities for the state or two states in the dyad in a given year. If the data are dyad-year, the function adds 12 total columns for the first state (i.e. ccode1) and the second state (i.e. ccode2) for all estimates of national military capabilities provided by the Correlates of War project. If the data are state-year, the function returns six additional columns to the original data that contain that same information for a given state in a given year.

Details

The function leans on attributes of the data that are provided by the create_dyadyear() or create_stateyear() function. Make sure that function (or data created by that function) appear at the top of the proverbial pipe.

References

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.

Examples

Run this code
# NOT RUN {
# just call `library(tidyverse)` at the top of the your script
library(magrittr)

cow_ddy %>% add_nmc()

create_stateyears() %>% add_nmc()


# }

Run the code above in your browser using DataLab