Saturday, September 21, 2019

Stata Tips: Two way clustering and tabulating with labels

Two Stata tips for you today:


  1. When you're doing two-way clustering with the reghdfe command (one of my very favorite Stata discoveries!), order matters...at least when you feel the need, the need for speed. :) Cluster first on the variable with more unique values. See comments in this twitter thread
  2. And David McKenzie tells us that this is what we should do right now: Open up Stata and type "ssc install fre".  With the 'fre' package, you can look at the values and their labels when tabulating data. No more "tabulate x" followed by "tabulate x, nolabel".  Get all of the information you need in one easy step! 

  1. Example output of Stata's fre command

No comments:

Post a Comment