From | Richard Herrell <[email protected]> |
To | [email protected] |
Subject | RE: st: STATA Vs. SAS |
Date | Wed, 27 Nov 2002 13:45:17 -0600 (CST) |
On Wed, 27 Nov 2002, Nick Cox wrote: > Richard Herrell > > > > if x=0 then y=1; > > else if 1 < x < 10 then y=2; > > else if 11 < x < 20 then y=3; > > else y=. In SAS, the code exits the structure when a true condition is met. In Stata, every if condition is evaluated even after the true condition is met. * * 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–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |