|Date: ||Mon, 19 Jun 2000 16:48:52 -0400|
|Reply-To: ||Mark Casazza <casazzam@ADELPHI.EDU>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>|
|From: ||Mark Casazza <casazzam@ADELPHI.EDU>|
|Subject: ||Re: select case|
My favorite is:
SELECT IF ANY(TEST,1,2).
Keep in mind, however, that SELECT IF permanently removes cases from your
file. If you only want to run one procedure precede the SELECT IF with a
TEMPORARY command. If you are going to do several procedures you might
want to create a filter variable instead.
IF ANY(TEST,1,2) FILT_VAR=1.
FILTER BY FILT_VAR.
At 04:16 PM 2000-06-19 , yiya Chen wrote:
>I am writing to ask how to select case in SPSS to do the following job: I
>have a variable X which is under several different conditions. A
>hypothetical example is shown in the following:
> > Variable X Test Condition
> > A 8 1
> > B 9 2
> > C 10 3
> > D 15 4
> > Now, I want to analyze variable A but only under conditions 1 and 2 and
> not under all conditions. How can I do that? I went to select case. It
> did not allow me to select case with "test condition = 1&2". How to do
> the conjunction? Thanks in advance.
> > Best,
> > Yiya Chen
>Do You Yahoo!?
>Send instant messages with <http://im.yahoo.com/>Yahoo! Messenger.
Mark V. Casazza
Senior Research Analyst
Office of Research, Assessment and Planning
Adelphi University, Levermore Hall #307
Garden City, NY 11530