Coming in Stata 13, good news for users who need to export results without hacking too much into the software (rejoice, students!). This reminds me of Tamás Bartus’ publish command, which has been in development for several years now.

This also confirms that Stata aims at users who program a bit before going back to their favourite WYSIWYG software, while R aims at users who program a lot from their favourite code editor. There is demand for both.

Stata 13 will be out in a few days and also contains good news for structural equation modelers — one more indication of the software’s academic target audience.

Coming in Stata 13, good news for users who need to export results without hacking too much into the software (rejoice, students!). This reminds me of Tamás Bartus’ publish command, which has been in development for several years now.

This also confirms that Stata aims at users who program a bit before going back to their favourite WYSIWYG software, while R aims at users who program a lot from their favourite code editor. There is demand for both.

Stata 13 will be out in a few days and also contains good news for structural equation modelers — one more indication of the software’s academic target audience.

This might be of interest to a few readers: network plots with ggplot2  (via 339 députés sur Twitter | Polit’bistro : des politiques, du café — shameless plug)

This might be of interest to a few readers: network plots with ggplot2 (via 339 députés sur Twitter | Polit’bistro : des politiques, du café — shameless plug)

Someone has done his dataviz homework at LeMonde.fr.

Someone has done his dataviz homework at LeMonde.fr.

Policy makers, like most people, normally feel that they already know all the psychology and all the sociology they are likely to need for their decisions. I don’t think they are right, but that’s the way it is. On the other hand, people who have not studied economics are fully aware of their ignorance. The use of mathematics adds a touch of magic to economics. Indeed it makes perfect sense for economists to be the interpreters of policy-relevant research, because they understand and are trained to use big data. This, and the fact that policies always involve tradeoffs and almost always involve money, explains the dominant role of economics in policy.
Daniel Kahneman’s Gripe with Behavioral Economics - The Daily Beast (don’t get me started about the bit where economists “understand and are trained to use big data” — and the problem is not the “big”)
In the control group, the authors find what Bartels, Nyhan and Reifler found: There are big partisan gaps in the accuracy of responses. …. For example, Republicans were likelier than Democrats to correctly state that U.S. casualties in Iraq fell from 2007 to 2008, and Democrats were likelier than Republicans to correctly state that unemployment and inflation rose under Bush’s presidency.
Survey respondents are lying, not ignorant | Stats Chat
That process and the data it produced made sense for certain research tasks, but they also swept under the rug the ambiguity and uncertainty that makes cases like Turkey right now so important for our understanding of what democracy is, and how it really emerges and recedes. Many regimes are easy to tag as democracies or autocracies, but there’s a sizable bloc that defies this bifurcation, and this bloc has only gotten larger in the past 25 years. As more and more states that long eschewed democratic procedures have adopted them, they have often done so in bits and pieces. What one hand has given in formal rules, the other has often taken away with informal practices and outright subterfuge that are meant to preserve the power distribution “real” democracy would threaten to overturn.
The State of Democracy in Turkey | Dart-Throwing Chimp

One-line summary statistics table: a wrapper for estpost

Some time ago, I released a wrapper for the catplot command to produce bar plots of categorical data in one short command. I did not find the time to improve it, so I am just adding a little demo to it and calling it quits for now. Here’s the code.

I just wrote another little wrapper to produce simple summary statistics tables in plain text format with tab-separated values. I ask students to produce such tables but was not happy with existing commands like tabout and tabstatout.

It’s a bit of a paradox that most statistical software do not produce these “Table 1” outputs in a straightforward manner. My need was for a result that would be easy to copy-paste and then format in an editor like Google Documents or Microsoft Office.

With that aim in mind, the wrapper uses the estpost and esttab commands from the estout package to export a mean/SD/min/max summary for continuous variables and percentages for categorical ones, using complete observations only and fixed precision at zero decimal, except for the mean and SD that get one.

A previous version of the wrapper did a few more things such as accepting a by(varname) option, but at the price of much clunkier code. This is what the output of the newer version looks like in the Stata Results window:

The stab_demo.txt file returned by the wrapper contains the same information, minus the blank lines. The demo code follows, where m() stands for mean and p() for prop (proportions).

webuse nhanes2, clear
la var sex "Gender"
la var race "Race"
noi stab using stab_demo.txt, m(age height weight bmi) p(sex race) replace
Reminds me of the map of Istanbul that was on TV last night.

Reminds me of the map of Istanbul that was on TV last night.

A blog companion to a bunch of courses on quantitative methods.

twitter.com/politbistro

view archive



About

Software

Map