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

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

From   "Nick Cox" <>
To   <>
Subject   RE: st: RE: Return r(111) this time
Date   Sun, 15 Mar 2009 19:40:36 -0000

(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. 


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

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

*   For searches and help try:

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