Learn R Programming

fpsim: Compute Measures of Foreign Policy Similarity/Agreement

{fpsim} offers some tools for calculating some common measures of dyadic foreign policy similarity, like Cohen’s weighted kappa, Signorino and Ritter’s s, and Scott’s pi. The audience this package intends to reach is an audience interested in international relations and questions of how much two countries have foreign policy priorities that are similar or dissimilar to each other. However, the metrics borrow heavily from psychology and some of their fundamental methodological questions in psychometrics. How can we measure the extent to which two individuals agree or disagree? Are associated with each other or are disassociated from each other? Are close or far apart? These statistics from the domain of psychometrics are placed on measures of dyadic foreign policy similarity, either in alliance portfolios or votes in the United Nations General Assembly. The tools offered here can compute such statistics on a case-by-case basis or serve as a means for students to learn how they are calculated. External data of the universe of measures of dyadic foreign policy similarity will be available on demand.

Installation

Versions of the package on CRAN can be downloaded like any other package.

install.packages("fpsim")

You can also install the development version of {fpsim} from Github via the {devtools} package. I suppose using the {remotes} package would work as well.

devtools::install_github("svmiller/fpsim")

Copy Link

Version

Install

install.packages('fpsim')

Monthly Downloads

110

Version

0.1.0

License

GPL (>= 2)

Maintainer

Steve Miller

Last Published

August 18th, 2025

Functions in fpsim (0.1.0)

usamex46

American-Mexican Dyadic Voting Patterns in the United Nations, 1946
taub

Calculate Kendall's (1938) Tau-B
spi

Calculate Scott's (1955) pi
srs

Calculate Signorino and Ritter's (1999) S for Similarity
gmyrus14

Select Alliance Portfolios of Germany and Russia, 1914
cohenk

Calculate Cohen's (1960, 1968) weighted kappa