Announcement

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

  • Using outreg2 to Generate a Table with Dependent Variables at the Head of Each Row

    Hi all,

    I've recently started using outreg2 to generate publishable tables with my regression output. By default, each row of these tables specifies a different independent variable but what I would like to do is generate a table such that each row is devoted to a specific dependent variable instead. In this case, separate columns would be devoted to coefficients of interest and the independent variables which they correspond to. Is there a way to do this with outreg2 or is their a better Stata command for generating such a table?

    Here is a basic example of what I'd like to generate:
    Dependent Variables Ind. Variable of Interest 1 Ind. Variable of Interest 2
    Dep. Var 1 0.567 0.001
    Dep. Var 2 1.35 0.345
    Dep. Var 3 2.5 5.45
    I understand that standard errors will probably be reported below each coefficient estimate.

    Thanks for any help you may provide,

    Thomas

  • #2
    Did you end up figuring this out? I have the same problem.
    I've managed to get the variables I need in 1 column but cant get outreg to not print R2 and counts

    This is the code I used if this helps.... (DV= dependent var, $test is list of IVs)


    foreach var of varlist $test{
    reg DV `var'
    outreg using mydoc.doc, append addtable nocons
    }

    Comment


    • #3
      outreg and outreg2 are quite different commands. I don't use either, but #1 refers to outreg2 and #2 to outreg.

      More at http://www.statalist.org/forums/foru...-after-capture

      Comment

      Working...
      X