Statalist


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

st: RE: RE: mvencode numlist


From   Hugh Robinson <hugh.robinson@umontana.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: mvencode numlist
Date   Fri, 13 Feb 2009 12:15:14 -0700

Thanks Nick, that is much easier.


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Friday, February 13, 2009 12:09 PM
To: statalist@hsphsun2.harvard.edu
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 
n.j.cox@durham.ac.uk 

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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index