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

st: Trouble with `=`_N'-1'

From   "Ashim Kapoor" <[email protected]>
To   [email protected]
Subject   st: Trouble with `=`_N'-1'
Date   Mon, 1 Sep 2008 16:49:52 +0530

Hello everyone,

I wish to make a change in the 2nd last observation.

so I have : replace line = 5 in `=`_N'-1'

But this change the LAST observation! Am I doing something wrong?

funnily replace line = 5 if _n==_N-1 works fine!

Any tips?

Thank you,
*   For searches and help try:

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