
From  Danielle H Ferry <dferry@nber.org> 
To  statalist@hsphsun2.harvard.edu 
Subject  Re: st: RE: RE: Can you get sign of value only? 
Date  Thu, 23 Mar 2006 22:06:05 0500 
Note that the difference between this and using sign(y) is that sign(0) is 0. A quite different point is that there is another way to write what Jennifer is suggesting, namely gen z = cond(y < 0, x, x) Nick n.j.cox@durham.ac.uk
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2020 StataCorp LLC  Terms of use  Privacy  Contact us  What's new  Site index 