Statalist


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

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


From   [email protected]
To   [email protected]
Subject   RE: st: RE: Return r(111) this time
Date   Sun, 15 Mar 2009 16:05:57 -0400

OK. I used the correct expression and -set trace on-. Here's the feed back:


-------------------------------------------------------------------- end nlsurwbe ---
- }
- if _rc {
- di as error "nlsur`eqn' returned " _rc
= di as error "nlsurwbe returned " _rc
nlsurwbe returned 111
- di as error "verify that nlsur`eqn' is a function evaluator program"
= di as error "verify that nlsurwbe is a function evaluator program"
verify that nlsurwbe is a function evaluator program
- exit _rc
}
}
---------------------------------------------------------------- end nlsur.Estimate ---
end nlsur ---
r(111);



What does that mean?

Jingjing




Quoting Nick Cox <[email protected]>:

(1) is incorrect, because it is illegal syntax. Stata won't know what to do with the unmatched quotes.

(2) is legal syntax. I can't say whether it is correct for your problem, but provided all the locals are defined, it looks OK to me.

But it is better to get Stata to tell you this.

Nick
[email protected]

[email protected]

Sorry, I am a little confused. Two expressions:

(1)   replace `lnc'=`a'*`lnpe'+`b'*``lnpe'*`lnpe''


(2)   replace `lnc'=`a'*`lnpe'+`b'*`lnpe'*`lnpe'


Which is the correct one?

Quoting Nick Cox <[email protected]>:

``lnpe' or `lne'' can not be legal. As in ordinary language, single
quotes must be in matching pairs.


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





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