Date: Tue, 23 Sep 2008 14:36:10 +0200
Reply-To: =?us-ascii?Q?Jerabek=20Jindrich?= <JindraJerabek@seznam.cz>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: =?us-ascii?Q?Jerabek=20Jindrich?= <JindraJerabek@seznam.cz>
Subject: =?us-ascii?Q?Re=3Aselecting=20cases?=
In-Reply-To: <200809231030.m8MMUiE3026866@malibu.cc.uga.edu>
Content-Type: text/plain; charset="iso-8859-2"
Hello,
Function "any" will help.
SELECT if any (2770,diag1 to diag50).
best
JIndra
> ------------ Původní zpráva ------------
> Od: Leo Bakker <leobakker@RU.NL>
> Předmět: selecting cases
> Datum: 23.9.2008 12:34:46
> ----------------------------------------
> Dear listers,
>
> I have a data file that I want to filter on certain diagnosis, for example
> Diag1 = 2700 or Diag1 = 2770 or Diag1 = 3900
> Problem is there are 50 diagnosis and underlying diagnosis: Diag1 till
> Diag50 each with several hundreds of possibilities.
> Therefore if I want to create a filter for all cases that have diagnosis
> 2770 I can do this: Diag1=2770 OR Diag2=2770 OR Diag3=2770 OR
> etc.......till Diag50=2770 and so on for every diagnosis.
> Simpler would be to select for exampe: Diag1=2770 to Diag50=2770
>
> I already tried:
> COMPUTE filter_$=(Diag1 =2770 TO Diag50=2770)etc.
> that didn't work
> COMPUTE filter_$=(Diag1 =2770 - Diag50=2770)etc.
> didn't work either.
> Is there a shorter syntax for this filter?
> I can't find this in the spss tutorials.
>
>
> Thanks,
> Leo Bakker
>
> =====================
> 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
>
>
>
=====================
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
|