Statalist


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

RE: st: RE: gen newvar satisfying two conditions


From   "b. water" <barleywater@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: gen newvar satisfying two conditions
Date   Sun, 21 Dec 2008 20:24:41 +0000

nick, thank you for your response. as always, a thoughful one too. your suggestions are closer to what i wanted. i like the fact that at the end of your solution yes is intuitively coded as 1 whilst no is coded as 0 where martin's suggestion was vice versa (tho easily changed).
 
more invaluably - i am introduced to cond(x,a,b,c), which i looked up at [R] functions under programming functions!
 
season's greetings,
bw
 
 
_________________________________________________________________
It’s the same Hotmail®. If by “same” you mean up to 70% faster.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008
*
*   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