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 (April 2012)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 11 Apr 2012 08:16:55 -0700
Reply-To:     "lori.andersen" <lori.andersen@GMAIL.COM>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         "lori.andersen" <lori.andersen@GMAIL.COM>
Subject:      Re: missing values in the DO IFcommand
In-Reply-To:  <201204111451.q3BEnu0l005450@waikiki.cc.uga.edu>
Content-Type: multipart/alternative;

You need to know what value has been assigned as "Missing" maybe it is a period or a -999 or something. What is the system missing value defined to be?

On Wed, Apr 11, 2012 at 11:13 AM, Patricio Calderon-2 [via SPSSX Discussion] <ml-node+s1045642n5633148h80@n5.nabble.com> wrote:

> Hi, > > I'm trying to create a new variable using the DO IF command and then > COMPUTE > to create the new variable. However, I'm stuck when I'm trying to define > a > missing value. Here is an example: > > DO IF (DT_EVENT_first EQ MISSING). > COMPUTE CONTACTOK = 0. > ELSE IF (DT_EVENT_first EQ DT_EVENT_last). > COMPUTE CONTACTOK = 1. > ELSE IF (DT_EVENT_first NE DT_EVENT_last). > COMPUTE CONTACTOK = 2. > END IF. > EXECUTE. > > Clearly the "MISSING" above is wrong. What do I have to write to indicate > that if a value is missing, the new variable should show a number zero. > > Thank you for your help, > Patricio > > ===================== > To manage your subscription to SPSSX-L, send a message to > [hidden email] <http://user/SendEmail.jtp?type=node&node=5633148&i=0>(not to SPSSX-L), with no body text except the > command. To leave the list, send the command > SIGNOFF SPSSX-L > For a list of commands to manage subscriptions, send the command > INFO REFCARD > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://spssx-discussion.1045642.n5.nabble.com/missing-values-in-the-DO-IFcommand-tp5633148p5633148.html > To start a new topic under SPSSX Discussion, email > ml-node+s1045642n1068821h43@n5.nabble.com > To unsubscribe from SPSSX Discussion, click here<http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1068821&code=bG9yaS5hbmRlcnNlbkBnbWFpbC5jb218MTA2ODgyMXwzMDQ5NjY2MjM=> > . > NAML<http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >

-- Lori Andersen Ph.D. student, Educational Policy, Planning & Leadership College of William & Mary Williamsburg, VA

-- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/missing-values-in-the-DO-IFcommand-tp5633148p5633159.html Sent from the SPSSX Discussion mailing list archive at Nabble.com.


[text/html]


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