Announcement

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

  • nostop doesn't work in my do file

    I am trying to run a Do file iteratively over a group of files to execute arima models. After each arima estimation, I run a psdensity command. This sometimes returns a error because the MA polynomial has roots less than or near to one. The Do file always stops at this point, even though I specify the "nostop" option. Any help would be appreciated. Thanks in advance
    Dave Carley

  • #2
    Try using capture. See help capture.
    Jorge Eduardo Pérez Pérez
    www.jorgeperezperez.com

    Comment


    • #3
      You can try : run do_file_name,nostop

      Comment


      • #4
        Good programming practice would dictate use of capture here, followed by code to handle the specific error in question, i.e.,
        Code:
        cap psdensity ...
        if _rc==<error_code> {
            ...
        }
        where <error_code> is the return code corresponding to the error you want to trap. This way, errors of this particular type will not interrupt execution, but other errors will (which is typically what you want).
        Last edited by Phil Schumm; 13 Apr 2014, 11:49.

        Comment

        Working...
        X