I have to correct myself in the sense that -trace- will show, with
-nlsur-, details of the program used. It will not, however, pass on
the error message, or the return code, of the program. That makes it
more difficult to pinpoint the error. The same happens if -set trace
on- is used inside the program, irrespective of -tracedepth-.
When the program is invoked directly (without -nlsur-), the error
messages will relate to actual problem inside the program. The program
will, however, change the data if it runs successfully; therefore,
copies of the dependent variables should be used.
Eva
2009/3/15 Nick Cox <[email protected]>:
> I've not tried it with -nlsur- but in general it is true that you may
> need to -set tracedepth- too. Alternatively, and probably better here,
> insert -set trace on- at the beginning of your own program.
>
> Nick
> [email protected]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/