Re: EpiData-list Digest, Vol 55, Issue 19 Missing values is not NA
Dear friend Ziad,
NA is common expression to identify missing values. If you are working with R or S-Plus then NA is NA. That means that all functions or commands that you want to specify NA, the expression is also NA. However, in Stata or Epidata entry the NAs are epecified by dots (.) and sometimes by empty quotes (" ") depending if the variable of interest is formated as numeric or text. So, my guess is that your check command will work fine if do like this...
AFTER ENTRY IF v64=. THEN LET V65=9 & V66=9 & goto V67 ENDIF END
Best regards, Pedro Emmanuel
Today's Topics:
- If..then (epidata-list@lists.umanitoba.ca)
Message: 1 Date: Wed, 28 May 2008 08:47:34 -0700 From: epidata-list@lists.umanitoba.ca Subject: [EpiData-list] If..then To: epidata-list@lists.umanitoba.ca Message-ID: 897a5cf60805280847u3b99c66ak6f49e3855b879141@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
Hi, might be easy question, i am trying to write condition under check file to write value of 9 in 2 places if one cell equal to NA (code below), it does not work (and no error message), any tips?
AFTER ENTRY IF v64=NA THEN LET V65=9 & V66=9 & goto V67 ENDIF
Thank you in advance best regards ziad
EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
End of EpiData-list Digest, Vol 55, Issue 19
participants (1)
-
epidata-list@lists.umanitoba.ca