Announcement

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

  • How to store and watch the estimate if stata screen runs out of space due to having too many county factors

    I'm using ivregress and I'd like to see my estimate of my regression. But, due to having too many county factors my stata ran out of screen space and I cannot scroll back to see my estimate. I tried set scrollbufsize 2048000 but it will work for my next launch of stata - according to the command.

    Can you take a look at my regression command and tell my how can I retrieve the estimate ?

    Code:
     ivregress 2sls outcome  (endogen_var=i.IV_a i.IV_a#i.IV_b)male ismarried wasmarried age age2 black asian hispanic lths hsdegree somecollege i.year i.IV_b i.county $SCONTROL , cluster(county)
    I want to regain the estimate of endogen_var
    Last edited by Tariq Abdullah; 20 Sep 2022, 18:10.

  • #2
    Well, unless you're just playing around for fun, you should be logging your results anyway. If you log your results, you can view the log in the Viewer, and there is no issue of scroll buffer there.

    Code:
    log using my_results, replace
    ivregress 2sls outcome ...
    log close
    view my_results.smcl
    Seriously, you shouldn't be doing production analyses without a log anyway. That should be your standard practice before running anything that matters.

    Comment


    • #3
      Appreciate the kind advice. To be honest, I've jumped onto a new dataset and never ran into an issue like this before. But, you are absolutely right. I should start making log results while I'm doing analysis.

      Appreciate your time and thoughtful feedback as usual !

      Comment

      Working...
      X