Announcement

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

  • How to extract a first stage F stat in a seperate result file.

    After doing ivreghdfe or ivreg2, how can I save first stage F stat in a result file or any seperate text file? I want to do multiple iv regressions and save a fist stage F stat belonging to each regression at one place.

  • #2
    ivreg2 is from SSC (FAQ Advice #12). If I recall correctly, the first-stage F statistic is not stored, so you have to rerun the first stage regression separately - unless you are talking about the statistic from the F test of excluded instruments (see #6 of https://www.statalist.org/forums/for...-stage-outcome on how to rerun the first stage regression). Then after each regression, you may post the F-statistic to another frame.


    Initially:

    Code:
    frame create stats float (F)
    Then after running each first stage regression:

    Code:
    frame post stats (`e(F)')
    and once you are done:

    Code:
    cwf stats
    browse

    Comment

    Working...
    X