LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 25 Mar 2008 10:28:49 -0400
Reply-To:   Chang Chung <chang_y_chung@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Chang Chung <chang_y_chung@HOTMAIL.COM>
Subject:   Re: if 0 then set data ...
Comments:   To: Richard Wright <richard.wright@DARS.STATE.TX.US>

On Tue, 25 Mar 2008 09:54:54 -0400, Richard Wright <richard.wright@DARS.STATE.TX.US> wrote:

>Under SAS, like many other languages, an expression that evaluates to non- >zero is boolean "true"; "false" is an expression that evaluates to 0. ... hi,

technically, sas evaluates zero *and* missiing to false; everything else if true. This may be important because it is quite arbitrary and can differs from language to language. for example, in stata, missing is true.

In R, the situation is much more complicated. NA is of logical type by default, which is neither TRUE or FALSE. NA is not equal to anything -- it is not even equal to itself! I am not kidding. :-)

cheers, chang


Back to: Top of message | Previous page | Main SAS-L page