Statalist


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

st: RE: RE: mvencode numlist


From   Hugh Robinson <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: mvencode numlist
Date   Fri, 13 Feb 2009 12:15:14 -0700

Thanks Nick, that is much easier.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Friday, February 13, 2009 12:09 PM
To: [email protected]
Subject: st: RE: mvencode numlist

I would not even try, as it seems much easier to use something else: 

replace y = . if y < 0 

Even if you have a batch of variables, you can do that within a
-foreach- loop. 

Nick 
[email protected] 

Hugh Robinson

Can someone tell me the proper numlist coding to change all values less
than zero to "missing values".


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