
From  Kit Baum <baum@bc.edu> 
To  statalist@hsphsun2.harvard.edu 
Subject  st: Re: dummy variable with overlapping if conditions 
Date  Tue, 26 Sep 2006 08:06:48 0400 
I will just add that Philipp's code generates missing where the condition is not met and these would have to be replaced
with 0 to make it a dummy variable. This two step can be avoided if this code is modified to be
gen cl1 = conlab == 1 & (clmarg>=.95 & clmarg<=1.05)
* * 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–2015 StataCorp LP  Terms of use  Privacy  Contact us  What's new  Site index 