Resolved: French Departements, INSEE, ISO and NUTS-3 codes

If you are interested in subnational politics, France is an interesting case for many reasons. On the one hand, the country is highly centralised and divided into 96 (European) Departements (administrative units) with equal legal rights (though Corsica is a bit of an exception to this). In fact, Departements were created after the revolution in an attempt to replace the provinces of the Ancien Regime with something rational and neat. On the other hand, the Departements are vastly different in terms of their size, population, economic, political and social structure, which gives you a lot of variance that can be modelled. Electoral data is often made available at the level of the Departement (see e.g. the useful book by Caramani for historical results and the CDSP and government websites for recent elections) or can be aggregated to that level since electoral districts are nested in Departements. The French National Insitute for Statistics and Economic Studies (INSEE) has a wealth of data from the 1999 census and other sources, and even more is available from Eurostat. One thing that is incredibly annoying, however, is that many sources like Caramani, INSEE and the Wikipedia use the traditional French system. This system (which is part of the ISO standard ISO 3166-1) assigns numbers from 1 to 95 that once reflected the alphabetical order of the Departments’ names, though this initial order was a bit scrambled by territorial changes. The most obvious result of these are the odd 2A/2B codes for Corsica (after 1975, see this article on the French Official Geographic Code for the details). Rather unsurprisingly, Eurostat (and a few others) prefer the European NUTS-3 codes, which have a hierarchical structure that consists of a country (FR), region, and subregion (=Departement) code. If you want to merge Departmental data from various sources you obviously have to map one system to the other, which is cumbersome and prone to error. That’s why I wrote a little script in Perl that reads a table of Departmental Codes and creates a do-File for Stata, which does the actual mapping. From within Stata, you can simply type net from https://www.kai-arzheimer.com/stata to get the whole package. It should be fairly easy to adopt this to your own needs – enjoy!

Technorati Tags: france, subnational, departements, stata, perl, geocodes

Social Bookmarks:
Resolved: French Departements, INSEE, ISO and NUTS-3 codes 1Resolved: French Departements, INSEE, ISO and NUTS-3 codes 2Resolved: French Departements, INSEE, ISO and NUTS-3 codes 3Resolved: French Departements, INSEE, ISO and NUTS-3 codes 4Resolved: French Departements, INSEE, ISO and NUTS-3 codes 5Resolved: French Departements, INSEE, ISO and NUTS-3 codes 6Resolved: French Departements, INSEE, ISO and NUTS-3 codes 7Resolved: French Departements, INSEE, ISO and NUTS-3 codes 8Resolved: French Departements, INSEE, ISO and NUTS-3 codes 9Resolved: French Departements, INSEE, ISO and NUTS-3 codes 10Resolved: French Departements, INSEE, ISO and NUTS-3 codes 11Resolved: French Departements, INSEE, ISO and NUTS-3 codes 12

5 thoughts on “Resolved: French Departements, INSEE, ISO and NUTS-3 codes”

  1. @kaiarzheimer I took a look at your #Perl code at https://www.kai-arzheimer.com/stata/mapnutsiso

    You won’t be believe how good current Perl works😄 It will automatically enable strict mode for better code and more helpful error messages, use say() rather than print() with “n” and maybe the most important for your code: use the #regex modifier //x to add line breaks, indentation and even comments to your regex to make it actually readable👍

    perl
    regex

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.