Category Archives: Technical

RubyMotion for Complete Beginners

According to the RubyMotion guide for getting started, “RubyMotion is a toolchain that permits the development of iOS applications using the Ruby programming language.” In less formal terms it lets you write iOS apps in Ruby using your favorite development environment … Continue reading

Posted in Technical, Uncategorized | Tagged , , , , , , | 2 Comments

Automatically Setup New R and LaTeX Projects

You have a finite amount of keystrokes in your life. Automating repetitive steps is one of the great benefits of knowing a bit about coding, even if the code is just a simple shell script. That’s why I set up … Continue reading

Posted in Technical, Uncategorized | Tagged , , , , , , , | 3 Comments

How to Get FIPS Codes from Latitude and Longitude

FIPS codes are unique identifiers for geographic units within the US. Although they have technically been withdrawn as a standard, they are still widely used in political science and other applications for geographic categorization of data. For example, the CBS/New … Continue reading

Posted in Technical, Uncategorized | Tagged , , , , , , , , | Leave a comment

Merging Arthur Banks’ Time Series with COW

Recently I needed to combine data from two of the most widely used (at least in my subfield) cross-national time-series data sets: Arthur Banks’ time series and the Correlates of War Project (COW). Given how often these data sets are … Continue reading

Posted in Technical, Uncategorized | Tagged , , , , , , , , , , , , , , , , | 1 Comment

Getting Started with Prediction

From historians to financial analysts, researchers of all stripes are interested in prediction. Prediction asks the question, “given what I know so far, what do I expect will come next?” In the current political season, presidential election forecasts abound. This … Continue reading

Posted in Technical, Uncategorized | Tagged , , , , , , , , , , , , , | Leave a comment

How to Count Words in LaTex Documents

One thing that can be hard to adjust to for new LaTeX users is not being able to easily get a word count relative to other programs. Now there is a solution, thanks to Matthias Orlowski and Alex Iliopoulos. I share … Continue reading

Posted in Technical | Tagged , , , , , | 1 Comment

Find Unique Values in List (Python)

I Googled this problem today and found a lot of people creating long-ish functions to find unique values. There is a much simpler solution: turn your list into a set (which removes duplicates) and then back into a list. newList … Continue reading

Posted in Technical | Tagged , | 3 Comments

Finding a Series of Confidence Intervals in R

[Note: While many of my posts appeal only to readers with certain interests--specifically, mine--this one is meant to provide a public good in the form of an R script that can be run to find multiple confidence intervals around the … Continue reading

Posted in Technical | Tagged , , , , , , , , , , | Leave a comment