See: http://www.eecs.mit.edu/stata-link.html