May 202012
 
Free historical maps of Germany and Europe

I was happy to stumble upon the Institute of European History’s digital map server when I needed to illustrate my point about territorial cleavages in Germany. The site has a slightly dusty look and uses gifs for previews, but the licence is more than generous and the coverage and quality are impressive.

May 182012
 

As some of you might have noticed, I have recently made some changes to my site. The idea was to simplify its administration and to streamline its design. Predictably, the only thing that really took off was the number of 404 errors. To quote the central theorem of policy analysis, all innovations make things worse, [...]

May 112012
 
Mapping local deviations from regional voting patterns in Germany

Political Science is the magpie amongst the social sciences, which borrows heavily from other disciplines. These days, many political scientists are actually failed economists (even more failed economists are actually economists, however). I used to think of myself as a failed sociologist, but reading the proofs it dawned on me that I might actually aspire to become a failed geographer.

Apr 262012
 

For the un-initiated: Geocoding is the fine art of converting addresses into geographical coordinates (longitude and latitude). Thanks to Google and some other providers like OpenStreeMap, this is now a relatively painless process. But when one needs more than a few addresses geocoded, one does not rely on pointing-and-clicking. One needs an API, i.e. a software library that makes the service accessible through R, Python or some other programming language.
geocode is a user-written Stata command that gives access to Googles API from within Stata. It takes a variable containing address strings and returns two new variables containing the latitude/longitude information

Apr 212012
 
Putting candidates in their place with R

Counting the number of mainstream candidates living in a constituency is a point-in-polygon problem: each candidate is a co-ordinate enclosed by a constituency boundary. R function overlay from package sp carries out the relevant operation. Counting candidates and mapping their number is easy if you remember one thing: VECTORISATION