[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: funny behaviour of _N

From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: funny behaviour of _N
Date   Thu, 28 Aug 2008 09:23:38 +0200

Turn the last one into -replace a=b if _n==_N- and it will work... See the
examples in - h generate-


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ashim Kapoor
Sent: Thursday, August 28, 2008 8:24 AM
To: [email protected]
Subject: st: funny behaviour of _N

Hello everyone,

Please compare the following 2 code snippets : -


local num=_N
replace a=b in `num'


replace a=b in _N

Surprisingly only the 1st one works ! Could some one tell me why ?

Thank you,
*   For searches and help try:

*   For searches and help try:

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