This list at the UNC help desk looks like it really was compiled from questions actually asked. That's always a good thing, so here goes. I hope you find it useful.
Archives for the ‘Stata’ Category
Regex tricks with Notepad++ and Statalist
Sunday, 2 August 2009
If you haven't heard, the do-file editor in Stata 11 comes with proper syntax highlighting, folding, etc. That means that this post will be obsolete as soon as I upgrade, unless the new do-file editor doesn't do regular expression-based find and replace. No matter. In the meantime, here goes: People often post code on Statalist [...]
Numerics by Stata
Friday, 31 July 2009
Two years ago, three economists at the World Bank -- Michael Lokshin, Zurab Sajaia and Sergiy Radyakin -- cooked up ADePT. That, to my knowledge, was the first successful attempt to use Stata for leveraging econometric research across the world. Think of it this way: a star academic economist builds a theoretical model that explains [...]
My first useful Mata function
Tuesday, 28 July 2009
Or so I thought. I'm working on a cluster analysis project. There are multiple data sets, they are massive, and there are several variable subsets by which one could plausibly cluster the observations. Agglomerative hierarchical clustering is the way to go when you don't have any notion of how many clusters there should be, but [...]
It’s grim back home
Tuesday, 14 July 2009
Ever since I moved to the US in 1996, I've been reading one Romanian daily newspaper or another, with titles changing as their web presence waxed and waned and as my own preferences shifted over time. As it happens, a significant part of my livelihood has come lately from helping some eighty-odd American daily newspapers [...]
Learning and mingling opportunities
Monday, 13 July 2009
If you've got £900 to spare and an inclination to spend a lovely September week at the London School of Tropical Medicine, lucky you. I'd appreciate a first-hand account if you go. StataCorp does what it can, but I'm sure the more the merrier. My own first attempt at contributing happened this May, when I [...]
Stata 11 shipping July 27
Friday, 26 June 2009
Of course if you are on the Statalist you already know. Details here. New features include a proper editor with syntax highlighting, full pdf documentation, support for interaction terms typed directly in your estimation expression -- the lack of which used to be a reason to prefer R -- and a full kit of object-oriented [...]
Stata and StatTransfer
Wednesday, 17 June 2009
If you collaborate with people who use other statistical software with proprietary data file formats, you will find Stat/Transfer useful for converting between Stata and said software. How to do that using the Stat/Transfer GUI is easy enough to figure out. But you can also run Stat/Transfer from within Stata. If you are on a [...]
Using Stata for Windows shell scripting
Thursday, 11 June 2009
Occasionally a need arises to move things between computers. You might, for example, be getting about 20 gigabytes of data per week, use it to re-run your model so your parameter estimates stay up to date, and then you must make room for next week's batch. For this sort of job you probably have a [...]
Dynamic arithmetic expressions
Monday, 27 April 2009
A couple of days ago I showed how you can use logical operators inside arithmetic expressions. The point of that post was that if you had three variables, called say _var1, _var2 and _var3, then you could build another variable, call it _var4, that counted row-wise their non-zero instances, like so: gen _var4=(_var1!=0)+(_var2!=0)+(_var3!=0) This was [...]