Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Outputting Two Columns: Year and Treatment*Year

    Hey, I'm running a panel regression that uses year fixed effects and those same year fixed effects interacted with a treatment variable. For example, my regression looks like:
    Code:
    reg y x1 x2 x3 year* t_year*, noconstant
    where year is the prefix for a set of dummy variables from 2001-2015 and t_year the prefix for those same dummys interacted with another dummy variable, treatment.

    My regression output for this one model is long because each FE gets a row. 15 rows for the year FE and another 15 for those same years interacted. I'd like to output the coefficients for these year FE into Latex to get something like the simple table below. Something like coefplot, which lets you rename variables and group them together, but for a table output would work. Looking for any advice.
    Year Treatment Interaction No Interaction
    2001 Beta Beta
    2002 Beta Beta
    2003 Beta Beta
    2004 Beta Beta
    2005 Beta Beta


  • #2
    There are piles of programs for outputing results. I like outreg2, but there are others that work as well.

    Comment


    • #3
      Found a solution. The main issue here was that estout and outreg2 wouldn't output the treatment interaction and un-interacted terms in the same row when they took on different variable names. Outreg2 and estout have an option to rename the outputted variables, but it renames the variables after outputting the rows. I wanted to output variables with different original names in the same row. To get past this, I ran the same regression twice: one where the treatment-interaction terms were called y2001 etc. and another where the un-interacted terms were called y2001 etc. Saving two separate estimates with standardized names is a workaround and works with outreg2 and estout.
      Last edited by Ara Tufts; 11 Apr 2019, 09:34.

      Comment

      Working...
      X