WinEdt & Stata 11

WinEdt, the editor of choice for many LaTeX users, can be used as Stata do-file editor in a fairly simple manner by installing Stata Mode.  However, as far as I can tell, the author of Stata Mode doesn’t appear to have anticipated Stata’s willingness to produce new versions – in extracting the path to the Stata executable it only looks for versions 8-10.  If you have version 11 this is easily fixed.  After unzipping Stata Mode, look for extract_path.edt and open it.  Change line 11 to:

LetRegNum(8,11);

Save  the file and the run the installation macro. Of course, this will break once version 12 comes out, which is normally about a month after I decide to splurge on an upgrade.  Wouldn’t it be nice if Statacorp gave you a warning that a new version was on the horizon?  I know, I should be using R.  It also plays nice with (R)Winedt.

Stata Mode lacks one convenient feature – the ability to run only selected lines of your Stata code.  This can be achieved by following these instructions.

Stata
WinEdt

Comments (2)

Permalink

Drawing graphs using tikz/pgf & gnuplot

Combining the tikz package with gnuplot allows you to plot graphs without ever leaving your favorite editor.  Adding the tikz package is straightforward as with other LaTeX packages but everytime I run into trouble installing gnuplot.  As far as I can tell the following steps are sufficient and necessary to get tikz and gnuplot to play nicely together.

  • Download gnuplot and unzip in some folder, e.g., C:\gnuplot.  Subsequently add C:\gnuplot\bin\ as a path to your environment variables.
  • If you have downloaded the windows version of gnuplot then change the name of the executable from ‘wgnuplot.exe’ to ‘gnuplot.exe’.
  • gnuplot may be prevented from writing in the current directory when it is called by tikz.  Use the –enable-write18 switch when compiling your document, e.g., pdflatex –enable-write18 foo.tex.  If you use WinEdt, the switch can be added under Options-Executions Modes.   Note that the first ‘-‘ in –enable-write18 should be two ‘-‘.
  • gnuplot doesn’t seem to like spaces in filenames.

latex

Comments (3)

Permalink

Bibliography style for Economics of Governance

This is a simple hack of newapa.bst to confirm with the bibliography style of Economics of Governance. Other economics journals published by Springer, e.g., International Journal of Game Theory, appear to use the same bibliography style. Here are a couple of examples of what the bibliography style looks like (taken from the Economics of Governance homepage):

Journal article:
Kydland, F. E., Prescott., E. C. (1977) Rules rather than discretion: The inconsistency of optimal plans. Journal of Political Economy 85(3): 473–49

Complete book:
Kuran, T. (1995) Private Truths, Public Lies: The Social Consequences of Preference Falsification. Harvard University Press, Cambridge

Contribution in a book:
Schelling, T. (1968) The life you save may be your own. In: Chase, S. B. (ed.) Problems in Public Expenditure Analysis. The Brookings Institution, Washington, D.C.

The bibliography style: ecogov.bst

latex
natbib

Comments (0)

Permalink

The Socialist-Green Electoral Alliance in France 2002

Data on the electoral alliance between the Socialist and the Greens in the 2002 French legislative election from Blais, André and Indridi H. Indridason. 2007. “Making Candidates Count: The Logic of Electoral Alliances in Two Round Legislative Elections.” Journal of Politics 69(1): 193-205.

data [stata]

codebook [pdf]

Data
Elections
Electoral Pacts
France

Comments (0)

Permalink

Assisting Professors in Political Science

The blog Assisting Politics provides some interesting information on the publication record of assisting professors in U.S. including number of publications, in what journals, etc.  A great resource if you want to figure out whether you really are being productive enough (as if you need more stress in your life).  More information on the data can be found on the blog but you can download the data (last updated in Feb. 2007) here [.xls].

I didn’t collect the data so please head over to Assisting Politics if you have comments, etc.

Data
The Profession

Comments (0)

Permalink

MIPT Terrorist Knowledge Base Data (perl-script)

NOTE: The MIPT Terrorist Knowledge Base doesn’t appear to be online anymore. The Global Terrorism Database seems like a comparable source.

The MIPT Terrorist Knowledge Base (www.tkb.org) provides data on international terrorist incidents since 1968 and domestic terrorist incidents since 1998. The database is updated monthly. Each terrorist incident can be looked up individually online but the whole database is not distributed publicly. In a recent paper I examined the effects of terrorism on coalition formation (Indridason, Indridi H. “Does Terrorism Influence Domestic Politics? Coalition Formation and Terrorist Incidents.” Forthcoming 2008. Journal of Peace Research 45(2)) and to obtain the data I wrote a perl-script that flips through each page and retrieves that data. Dave Armstrong deserves credit for giving me the idea to write the script. Even if you are not interested in terrorist data, the script should be fairly easy to adopt to download any data on the web – it only took me a couple of days to write the script without having ever touched perl before.

terror perl script

Data
perl
Terrorism

Comments (2)

Permalink

Coalition formation in Iceland 1945-2003

Data on coalition formation, duration, termination, and composition in Iceland between 1945-2003 from Indridi H. Indridason. 2005. “A Theory of Coalitions and Clientelism: Coalition Politics in Iceland 1945-2000”. European Journal of Political Research 44(3): 439-464.  
The format of the tables follows Müller, Wolfgang and Kaare Strøm, eds. (2000). Coalition Politics in Western Europe. New York: Oxford University Press.  The data until 1999 is included in the CCPD archive where information on variable definitions can also be found.  The tables below include those that were not included in the EJPR article (b/c of space limitations).

Coalition data – Iceland 1945-2003 [.xls]

Coalitions
Data
Iceland

Comments (0)

Permalink

Work in progress

The aim of politicaldata.org is (or, rather, will be) to ease the dissemination of data on political phenomena. Initially, the primary focus will be on data from the Nordic countries but eventually I hope to expand the coverage, well, as much as possible.

If you have data that you would like to share with others I will be happy to post your data here or provide a link to where your data is stored. If you want to share your data on this site you will need to send me:

  • the data
  • a codebook with details on sources, variables, coding, etc.
  • information about how you would like potential users of your data to cite you
  • some keywords, e.g., geographic region, country, thematic (elections, legislatures, etc.)

Note that there are other places that you may want to deposit your data, e.g., at the IQSS Dataverse Network or ICPSR, and are perhaps more appropriate for larger datasets. The aim of this site is not too compete with these institutions but rather provide access to `basic’ data the researchers often have a hard time gathering. That is, my motivation for running this site stems from the fact that countries such as my homeland, Iceland, are often excluded from comparative studies because of lack of data. Often the data has been collected or exists but hasn’t been made accessible. The hope is that this site will ease the search for such data and encourage students and scholar to share their data here instead of keeping it buried in boxes in the corner of their offices.

Uncategorized

Comments (0)

Permalink