Announcement

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

  • Regression output when running a full do file

    Hi,

    I have a problem which is probably the consequence of some very simple misunderstanding but I'm stuck:

    I wrote a long do file which consists of commands to load my datafile, a number of gen and recode commands, regressions, and graphics for regression diagnostics. I'm telling Stata to store the graphics in gph files and the regression results in log files. When I run my file section by section, everything works fine. But when I run the whole do file I don't get any output in the main window. From the resulting gph files and the datafile I can tell that every single command is executed but I don't get any output and therefore my log files are empty.

    Again I think that I made a very simple mistake, probably I ignored something important about Stata environments. But somehow I can't find a way to fix it.

    Any suggestions?

  • #2
    sounds like you are typing "run filename" rather than "do filename" - if you want to use "run", you need to put "noisily" in front of any command for which you actually want to see output

    note that the above is a guess since you did not tell us what you actually typed in Stata - please read the FAQ which gives excellent advice on how, and what, to post when asking for help

    Comment


    • #3
      Running the do file is pretty much the only thing I always do over the GUI. Anyway, it works flawlessly now. Thanks a lot!

      Comment


      • #4
        Just one more question: What exactly does Ctrl+R then? If I run only a part of my do file I get the output. If I select the whole code and run it then it runs "quietly". What's the rule here?

        Comment

        Working...
        X