fpsim: Compute Measures of Foreign Policy Similarity/Agreement

Provides functions for calculating various measures of foreign policy similarity or association commonly used in the study of international relations. These include Signorino and Ritter's S statistic (weighted and unweighted), Benati and Capurri's chance-corrected S statistic (A), Cohen's weighted kappa, Scott's pi, and Kendall's tau-b. The package facilitates the generation of dyadic similarity scores for empirical analyses and can also serve as an educational resource for understanding how such measures are calculated.

Getting started

Package details

AuthorSteven Miller [aut, cre] (ORCID: <https://orcid.org/0000-0003-4072-6263>)
MaintainerSteven Miller <steve@svmiller.com>
LicenseGPL (>= 2)
Version0.2.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fpsim")

Try the fpsim package in your browser

Any scripts or data that you put into this service are public.

fpsim documentation built on July 5, 2026, 1:06 a.m.