#RStats for Political Science

Examining Ireland’s foreign policy in pictures with R

Packages we will need: In January 2015, the Irish government published a review of Ireland’s foreign policy. The document, The Global Island: Ireland’s Foreign Policy for a Changing World offers a perspective on Ireland’s place in the world. In this blog, we will graph out some of the key features of Ireland’ foreign policy and so … Continue reading Examining Ireland’s foreign policy in pictures with R

How to tidy up messy Wikipedia data with dplyr in R

Packages we will need: To see another blog post that focuses on cleaning messy strings and dates, click here to read We are going to look at Irish embassies and missions around the world. Where are the embassies, and which country has the most missions (including embassies, consulates and representational offices)? Let’s first scrape the … Continue reading How to tidy up messy Wikipedia data with dplyr in R

Running tidy t-tests with the infer package in R

Packages we will need: For this t-test, we will compare US millenials and non-millenials and their views of the UK’s influence in the world. The data will come from Chicago Council Survey of American Public Opinion on U.S. Foreign Policy Click here to download 2017 policy survey data The survey investigates American public opinion on … Continue reading Running tidy t-tests with the infer package in R

Check model assumptions with easystats package in R

Packages we will need: Easystats is a collection of R packages, which aims to provide a unifying and consistent framework to tame, discipline, and harness the scary R statistics and their pesky models, according to their github repo. Click here to browse the github and here to go to the specific perfomance package CRAN PDF … Continue reading Check model assumptions with easystats package in R

Comparing North and South Korean UN votes at the General Assembly with unvotes package

Packages we will use Last September 17th 2021 marked the 30th anniversary of the entry of North Korea and South Korea into full membership in the United Nations. Prior to this, they were only afforded observer status. keia.org The Two Koreas Mark 30 Years of UN Membership: The Road to Membership Let’s look at the types … Continue reading Comparing North and South Korean UN votes at the General Assembly with unvotes package

Download and graph UN votes data with the unvotes package in R

Packages we will need: How to download UN votes to R. This package was created by David Robinson. Click here to read the CRAN PDF. We will download both the votes roll calls and the issues. Then we can use the inner_join() variable to add them together by the ID. We can create a year … Continue reading Download and graph UN votes data with the unvotes package in R

Wrangling and graphing UN Secretaries-General data with R

Packages we will need: According to Urquhart (1995) in his article, “Selecting the World’s CEO”, From the outset, the U.N. secretarygeneral has been an important part of theinstitution, not only as its chief executive,but as both symbol and guardian of theoriginal vision of the organization.There, however, specific agreement hasended. The United Nations, like anyimportant organization, … Continue reading Wrangling and graphing UN Secretaries-General data with R

Scraping and wrangling UN peacekeeping data with tidyr package in R

Packages we will need: For this blog post, we will look at UN peacekeeping missions and compare across regions. Despite the criticisms about some operations, the empirical record for UN peacekeeping records has been robust in the academic literature “In short, peacekeeping intervenes in the most difficultcases, dramatically increases the chances that peace willlast, and … Continue reading Scraping and wrangling UN peacekeeping data with tidyr package in R

Loading…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.