Running MLwiN from within Stata

In the past, I did a lot of multi-level modelling with MLwiN 2.02, which I quickly learned to loath. Back in the late 1990s, MLwiN was perhaps the first ML software that had a somewhat intuitive interface, i.e. it allowed one to build a model by pointing and clicking. Moreover, it printed updated estimates on the screen while cycling merrily through the parameter space. That was sort of cool, as it could take minutes to reach convergence, and without the updating, one would never have been sure that the program had not crashed yet. Which it did quite often, even for simple models.

Worse than the bugs was the lack of proper scriptability. Pointing and clicking  loses its appeal when you need to run the same model on 12 different datasets, or when you are looking at three variants of the same model and 10 recodes of the same variable. Throw in the desire semi-automatically re-compile the findings from these exercises into two nice tables for inclusion in  Running MLwiN from within Stata again and again after finding yet another problem with a model, and you will agree that any  piece of software that is not scriptable is pretty useless for scientists.

Continue reading “Running MLwiN from within Stata” »

All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty

latent 1 150x150 All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty

Source: Long/Freese, Regression Models for Categorical Dependent Variables Using Stata

I use emacs/ All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty for all my textprocessing needs, and for the last four or five years, I have created all my slides with Till Tantaus excellent “beamer” class. At the moment, I’m teaching a 2nd year stats course (imagine doing this with PowerPoint – the horror! the horror!), so I sometimes use graphs from the assigned text like this one from Long&Freese that illustrates the latent variable/threshold interpretation of the binary logit model. The message should be fairly clear:  All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty depends on  All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty andfollows a standard logistic distribution around its conditional mean.

Continue reading “All singing, all dancing 3d function plots with beamer, pgfplots and animate.sty” »

Presentation: Knowledge Networks in European Political Science

mutualworld Presentation: Knowledge Networks in European Political Science

Worldwide mutual citations in Political Science

 Presentation: Knowledge Networks in European Political ScienceLast Saturday, we presented our ongoing work on collaboration and citation networks in Political Science at the
4th UK Network conference held at the University of Greenwich. For this conference, we created a presentation on Knowledge Networks in European Political Science that summarises most of our findings on political science in Britain and Germany and provides some additional international context. The picture on the right shows a subnetwork of about 320 scientists who mutually cite each others’ work. Watch out for the dense IR/methods cluster and the lack of (mutual) connections between the dispersed political sociology and formal methods camps.

Continue reading “Presentation: Knowledge Networks in European Political Science” »

Makefile helps with latex, too

A couple of weeks ago, I posted an article on how make and Makefiles can help you to organise your Stata projects. If you are working in a unix environnment, you’ll already have make installed. If you work under Windows, install GNU make – it’s free, and it can make your Stata day. Rather unsurprisingly, make is also extremely useful if you have large or medium-sized latex project (or if you want to include tables and/or graphs produced by Stata) in a latex document. For instance, this comes handy if you have eps-Figures and use pdflatex. pdflatex produces pdf files instead of dvi files. If you produces slides with, this can save you a lot of time because you don’t have to go through the latex – dvips – ps2pdf cycle. However, pdflatex cannot read eps files: you have to convert your eps files with pstoedit to the meta post format, then use meta post to convert them to mps (which can be read by pdflatex). With this Makefile snippet, everything happens automagically:


#New implicit rules for conversion of eps->mp->mps
#Change path if you have installed pstoedit in some other place
%.mp : %.eps
c:\pstoedit/pstoedit.exe -f mpost $*.eps $*.mp

Continue reading “Makefile helps with latex, too” »