Stata Blogger?

Are you a Stata blogger? Join the aggregator!

Functions: inlist()

I once was asked what is wrong about the code similar to the one below: gen asean4 = 1 if countryname == “Indonesia” | “Malaysia” | “Philippines” | “Thailand” This is a common mistake. Understandably, the assumption that repeating the left side of the expression, in this case ‘countryname’, is redundant is not far-off. Alas, [...]

Continue reading Functions: inlist()

Importnew.ado (requires R)

| Gabriel | After hearing from two friends in a single day who are still on Stata 10 that they were having trouble opening Stata 12 .dta files, I rewrote my importspss.ado script to translate Stata files into an older format, by default Stata 9. I’ve tested this with Stata 12 and in theory it […]

Continue reading Importnew.ado (requires R)

So Long Arial

| Gabriel | Now that I’ve been looking into setting my graphs in a serif font instead of the default Arial, I find that changing fonts in Stata graphs is surprisingly difficult. It’s not that it’s intrinsically difficult, just confusing to learn because Stata’s handling of fonts breaks with the general Stata convention of specifying options […]

Continue reading So Long Arial

Adding elements to graphs as a slideshow

| Gabriel | One of the tricks to a successful presentation is to limit what your audience sees so they don’t get ahead of you and also to preserve a general sense of timing and flow. This helps keep the audience’s attention and also is good for focusing expectations in such a way that the […]

Continue reading Adding elements to graphs as a slideshow