Announcement

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

  • Avoid scroll

    Hi everyone,
    is there any setting for Stata in order to avoid the scroll of the output window?

    Sometimes, if I run 4/5 models I am reading the results and it scrolls to the last output (while I would like to fix the "view" on the output).
    Do you have any suggestion?

    Thanks a lot!

    I tried Preferences => General Preferences but I am not sure which one it is
    Last edited by Simone Fregior; 25 Apr 2015, 08:30.

  • #2
    help set more

    Comment


    • #3
      I see at least two possibilities :
      -First you could use the -quietly- command before the command the result doesn't interest you.
      example :
      Code:
      quietly gen x1=.
      quietly replace x1=x2 if .....
      quietly logit y x1 x2 /*as the iterations output takes place*/
      outreg
      Only the output table from outreg will be displayed


      - otherwise, and certainly the best idea : You should use the log, and capture this way the results that you care about (see help log)
      example :
      Code:
      log using yourpath.log
      ....
      gen x1
      replace x1=x2 if .....
      logit y x1 x2
      long on
      *Output from logit model
      outreg
      log off
      ..
      
      probit y x1 x2
      long on
      *Output from probit model
      outreg
      log off
      
      log close
      This way everything will be displayed in the Stata window, but only the outreg table from the logit and the probit will will be store in the same log file, very useful to compare results.

      Hope this helps
      Charlie

      Comment


      • #4
        Thanks, I run
        set pagesize 2

        It shows "more" but after it proceeds anyway...
        I cannot understand why...

        Comment


        • #5
          Have you actually tried
          Code:
          set more on
          before you run your regressions? When you run your regressions, you should then see a screen's worth of output and Stata will pause until you hit a key. This appeared to be what you wanted, according to your first message.

          Comment


          • #6
            Thanks,
            Yes I tried:
            Code:
            set more on
            set pagesize 2
            xtlogit...
            xtlogit...
            xtlogit...
            But it appears "--more--"
            and after it disappears, it appears back againg, and disappear...
            and I cannot fix the view on a portion of the output.

            Thanks

            Comment


            • #7
              What you describe is expected behaviour. If you want to look at "a portion of output", I strongly recommend that use a do-file to run your commands, with the output written to one or more log files, and then to look at the output in the log file.

              Comment


              • #8
                Simone, do you submit your sequence of commands from within the Do-file editor window, or do you copy and paste them into the Command window on Stata's main screen? If the latter, I think that may be the source of your problem. On my system (Stata/SE 13.1 for Mac (64-bit Intel) Revision 17 Apr 2015) more seems to be ignored when multiple lines are pasted into the Command window. When I copy and paste the following into the Command window, the output goes from start to finish without noticeable pause. When run from the Do-file editor window, more pauses the output as expected.

                Code:
                sysuse auto, clear
                codebook
                describe

                Comment

                Working...
                X