Date: Fri, 5 Feb 2010 13:44:53 -0500
Reply-To: Richard Ristow <wrristow@mindspring.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Richard Ristow <wrristow@mindspring.com>
Subject: Re: Syntax for case seletion-clerification
In-Reply-To: <D74AE6D9989E488299FF3F80CB03E121@ssw.buffalo.edu>
Content-Type: text/html; charset="us-ascii"
<html>
<body>
At 01:42 PM 2/4/2010, Gene Maguin wrote:<br><br>
<blockquote type=cite class=cite cite="">First, read up on the Any
function. Before you run the command you'll replace
toola,toolb,toolc,toold,toole,toolf,toolg with the value that each of
them refer to. Finally, pick=1 is your subset of cases.<br><br>
<tt><font size=2>Compute pick=0.<br>
Do repeat x=toola,toolb,toolc,toold,toole,toolf,toolg.<br>
+ if (any(x,v1 to v6)) pick=1.<br>
End repeat.</font></tt></blockquote><br>
Right, though you'd probably have
"<tt><font size=2>ToolType=x</font></tt>" rather than
"<tt><font size=2>pick=1</font></tt>". And although the poster
states that no more than one tool type can occur in any record, I think a
check for more than one type occurring would be imperative.</body>
<br>
</html>
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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
|