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/