Wednesday, August 24, 2016

For More Stars, Use XTREG Instead of AREG

I have a secret to share: I'm not sure that I ever realized (or thought much about the fact) that areg and xtreg produce different standard errors. Well, they do, and I have some good news: Often times, the right thing to do is the thing that produces the smaller standard errors! See Fiona Burlig's blog entry for more details.

I really like that she thought through the issue using simulations. Sometimes we spend hours googling answers to our questions when writing a quick little dofile would not only answer the question, but also help us really understand the question.

So, go back to that old project with the insignificant results. Did you use areg or xtreg? If you were to increase the sample size, would you necessarily increase the number of clusters?




Update: Forget xtreg!! Just use reghdfe, like the blog entry suggests! One of my colleagues just reminded me, "It gets the standard errors right, allows for two-way clustering and multiple high dimension fixed effects, and even does IV estimation."  

Monday, August 15, 2016

Life of a Researcher: "I Will Survive"

Fabulous remake of an old classic created by Tavneet Suri's very talented RAs. Enjoy! And remember: Make those scatter plots!

Friday, August 12, 2016

Cool Data Alert: Health Inequality Project

I saw these graphs on the relationship between household income and life expectancy a few years ago and was blown away. Yes, the difference in life expediencies between the richest and poorest men in the U.S. (15 years!) is startling, but what was more surprising (for lack of a better word) to me is that there are such noticeable differences in the middle of the distribution--where I am, where my friends and family are, where you are. I would love to learn more about what is driving these differences. Is it something that you can buy with money? Can it all be explained by good behaviors that happen to be correlated with income? Just plain genetics?

Luckily, the Health Inequality Project team has made really cool data available to help us learn more. UConn graduate students, if you are interested in using these data and need an adviser/committee member, come find me.

Saturday, July 30, 2016

What Makes a Paper Amazing? Good? Bad?

I was at the NBER SI this past week and saw a lot of papers! I can't say that I saw any bad papers (this is the NBER after all), but I did find myself thinking about what makes a paper amazing vs. just really good. I guess the answer is that amazing papers answer important questions in clever and credible ways. Most papers don't do all three but scoring high on even one of these can get you pretty far. I would also add that presenting well makes a big difference.

Anyway, I thought this would be a good time for me to show you this blog post on why research fails. I agree with all three of her points. Pay particular attention to the part at the end explaining when research does not fail (even though it might feel that way).

Addendum: Someone isn't so happy with the state of research in the sociology of education field. I'm not so sure how this compares to the state of research within economics, but I can say that I have had similar thoughts when refereeing papers. It breaks my heart to have to recommend rejecting papers that have potentially good ideas hidden deep within them. That said, there is also the danger of spending months and months to write one footnote that nobody really cares about. Always tricky to figure out when to let go of a paper....I struggle with this. 


Sunday, July 17, 2016

Applied Micro People: Stop Everything and Read this Now

This new Athey-Imbens paper has it all! Intuitive descriptions of the most fashionable identification strategies, plus examples, plus practical suggestions for best practices. The paper does excellent job of describing the strategies we know well (RD, difs-in-difs), but then also describes newer variations of these strategies (RKD, synthetic controls, nonlinear difs-in-difs) that we might not yet have used. My favorite section is the one on supplementary analyses! I have used many of these techniques in my papers, but I have never thought about doing them in any systematic way. There is also a section on machine learning.  I'm not at all familiar with these techniques, but if Athey and Imbens put this section in here, I should probably learn it!

This paper is a must-read for all applied micro students as well as anyone teaching any applied micro class at the graduate level. Actually, all applied micro people should have a look every now and then. Even if you don't use these techniques in your own research, knowing the "state of applied microeconomics" will make you better referees, better seminar/conference participants, better human beings? Ok, maybe not necessarily better human beings...well, maybe.  :)

Friday, July 8, 2016

Adorable Goats Show Us What It's Like to Do Research

This is not what I thought research would be like. I thought the process went something like this: Come up with brilliant idea. Test it with data. Write it up. Send to journal. Move on to next brilliant idea. Actually, even now, I find myself thinking that this is exactly how it works for "other" researchers. But maybe it isn't. Maybe all (most?) researchers do research exactly like these goats accomplish their goals. Enjoy!..both the goat video and the process of doing research!

Saturday, July 2, 2016

Stata Tip: Multiway Fixed Effects

I just discovered a funky little ado file that may be useful when running models with multiple sets of fixed effects on large data sets: rehgdfe.ado. I haven't tried it yet, but here is a description from the help file:

reghdfe is a generalization of areg (and xtreg,fe, xtivreg,fe) for multiple levels of fixed effects (including heterogeneous slopes), alternative estimators (2sls, gmm2s, liml), and additional robust standard errors (multi-way clustering, hac standard errors, etc).

Additional features include:

A novel and robust algorithm to efficiently absorb the fixed effects (extending the work of Guimaraes and Portugal, 2010).
Coded in Mata, which in most scenarios makes it even faster than areg and xtreg for a single fixed effect (see benchmarks on the Github page).
Can save the point estimates of the fixed effects (caveat emptor: the fixed effects may not be identified, see the references).
Calculates the degrees-of-freedom lost due to the fixed effects (note: beyond two levels of fixed effects, this is still an open problem, but we provide a conservative approximation).
Iteratively removes singleton groups by default, to avoid biasing the standard errors (see ancillary document).