Date: Thu, 19 Feb 2009 10:20:14 -0700
Reply-To: ViAnn Beadle <vab88011@gmail.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: ViAnn Beadle <vab88011@gmail.com>
Subject: Re: Conditional logic for a data range
In-Reply-To: <46ac04110902190828wabed966h3b7eaf739d015b82@mail.gmail.com>
Content-Type: multipart/alternative;
Use Help to search for the RANGE function.
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Jim
Arnold
Sent: Thursday, February 19, 2009 9:28 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Conditional logic for a data range
Hello,
I am new with SPSS syntax scripting and I have a simple need but I can't
seem to land on the proper conditional logic. I would like to specify a
data value range in a numeric variable for the selection of cases. For
instance:
temp.
select if (Var1 is in the range of 10 to 100).
exe.
I understand I can specify the range with ((var1 ge 10) and (var1 le 100))
this seems unnecessarily cumbersome and I'm thinking there has to be a
simple one statement method. Is there anything a bit more concise than what
I have above?
Thanks,
Jim
[text/html]
|