Announcement

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

  • IVreghdfe estimation results with outreg2

    Hi everyone,

    I am using ivreghdfe on stata to estimate instrumental variables. When I try to print the outcomes, outreg2 gives an error. I am trying to run the following code. Is there something you could recommend?

    ivreghdfe wellbeingscore education gender hhincome maritalstatus trend (finlit=treat), absorb(statereside) first

    est restore first
    outreg2 using ch2results.doc, cttop(first) replace
    est restore second
    outreg2 using ch2results.doc, cttop(second)



  • #2
    ivreg2 and outreg2 are from SSC, as you are asked to explain (FAQ Advice #12). You do not ask for the first stage results to be saved in your code. Note that the default name for the first stage results is _ivreg2_<<endogenous variable name>>, e.g., _ivreg2_tenure below.

    Code:
    webuse nlswork, clear
    ivreghdfe ln_w age c.age#c.age not_smsa (tenure = union south), absorb(idcode) savefirst
    est sto second
    est restore _ivreg2_tenure
    outreg2 using ch2results.doc, cttop(first) replace
    est restore second
    outreg2 using ch2results.doc, cttop(second)

    Res.:

    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	12.0 KB
ID:	1680455

    Comment


    • #3
      oh ok, thank you. I got better printed outcomes now.

      Comment

      Working...
      X