Date: Sat, 29 Nov 2008 08:38:22 +0800
Reply-To: amora_johnny@yahoo.com
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Johnny Amora <amora_johnny@YAHOO.COM>
Subject: Re: case selection
In-Reply-To: <200811282254.mASBmRfR000744@malibu.cc.uga.edu>
Content-Type: text/plain; charset=utf-8
Karen,
Suppose you select three cases with ID numbers 5, 8 and 10 where id is the variable name. Just type the following on the "Select Cases: If" dialog box:
id=5 & id=8 & id=10
In that command, an = sign was used followed by &. You can use symbols < , < or ~ depending on what you want.
Try also this sample syntax:
USE ALL.
COMPUTE filter_$=(id=5 & id=8 & id = 10).
VARIABLE LABEL filter_$ 'id=5 & id=8 & id = 10 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE .
Cheers,
Johhny
Johnny T. Amora
Statistician, Center for Learning and Performance Assessment
De La Salle-College of Saint Benilde
Manila, Philippines
--- On Sat, 11/29/08, Lewis <karen.watkinslewis@ATT.NET> wrote:
From: Lewis <karen.watkinslewis@ATT.NET>
Subject: case selection
To: SPSSX-L@LISTSERV.UGA.EDU
Date: Saturday, 29 November, 2008, 6:54 AM
Is there a way of selecting more than one case in a data set? I 100's of
cases. I am trying to select cases that have data. What I've tried so
far is (1) select cases, (2) If condition is satisfied/If..... (3) select
variable. After this, I would like to select several different id numbers
but I don't know what to use to seperate the numbers (assuming that you
can seperate the numbers). I've tried commas, semi-colons, and (+).
Thank you
=====================
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
Bring your friends to the fun. Invite your friends from Hotmail, Gmail to Yahoo! Mail today! http://www.trueswitch.com/yahoo-ph
====================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
|