Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: Return r(111) this time


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Return r(111) this time
Date   Sun, 15 Mar 2009 18:21:57 -0000

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] 

Eva Poen

Nick spotted two important points which I overlooked:

> scalar `aqq'=at'[1,5]

should be

scalar `aqq'=`at'[1,5]

Also, the if condition has to be added at the end of the program:

replace `lnc' = .... `if'
replace `sl'  = .... `if'
replace `sk'  = .... `if'
replace `sm' = .... `if'

where ... stands for the very long expressions in Jingjing's code.

Concerning -trace- and -nlsur-: From my (quick) experiments it
appeared that -trace- will only show details of the program if it is
invoked directly (i.e. without -nlsur-). In order to to that, one has
to be careful to use copies of the dependent variables, since the
program will change those variables if running successfully.


2009/3/15 Nick Cox <[email protected]>:
> scalar `aqq'=at'[1,5]
>
> is another typo. I didn't try finding any others.
>
> Do please find out about -set trace-, today!
>
> P.S. A bug here is that your program allows -if- but ignores it.

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index