From | David Kantor <dkantor@jhu.edu> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: RE: Taking averages, etc. |
Date | Wed, 17 Dec 2003 13:24:01 -0500 |
At 06:34 AM 12/17/2003 -0600, Fred Wolfe wrote: Some of this
I have written about this previously, but I feel compelled to state this again. Some of us may find it confusing, but I always do these kinds of operations using nested cond() functions:DO IF X1 = 1 and X2 = 3 Compute Y = 3. ELSE IF X3 = 2 and X4 = 17 Compute Y = 4. ELSE Compute Y = 5. END IF.can be programmed into a cond() function.
© Copyright 1996–2023 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |