Announcement

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

  • sortvar() from outreg2 together with xtivreg2

    I am using Stata 17.0 and run the following IV model

    Code:
    sysuse auto, clear
    xtivreg2 headroom (rep78 = gear turn) trunk length, fe

    By default the instrumented variable is printed first in the second stage output on Stata browser. I would like to export the table with another ordering of the variable, I use:

    Code:
    outreg2 using "myfile.txt", sortvar(length rep78 trunk) replace
    and get the table below, but I want to have variable length on top, then the instrumented variable second and trunk last. What do I get wrong?

    Thank you

    Click image for larger version

Name:	Untitled.png
Views:	1
Size:	19.5 KB
ID:	1681276
Working...
X