Date: Fri, 23 Sep 2005 20:34:37 -0300
Reply-To: Hector Maletta <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Hector Maletta <email@example.com>
Subject: Re: Temporary Select If
Content-Type: text/plain; charset="US-ASCII"
You in fact applied no filter. You selected some cases, leaving the rest
out, which is --yes-- a kind of filtering operation, but is not the
application of the SPSS FILTER command. The difference is moot, so do not
worry as long as the undesired cases are not considered in the
You may also achieve the same goal by defining a filter variable and using
it with FILTER, as follows:
COMPUTE FILTER_1 = ((V172 = '1' OR V172 = '3' OR V172 = '4' OR V172 = '7')
AND HrlyWage>=6.25 AND V1 = '26').
FILTER BY FILTER_1.
CROSSTABS /TABLES=V1 BY V244 /FORMAT= AVALUE TABLES /CELLS= COUNT /COUNT
ROUND CELL .
The downside of this is that you get stuck with the FILTER_1 variable in
your working file, which does not occurs with TEMPORARY (any scratch
variable created under TEMPORARY, of which you have none by the way,
disappears at the end of the next procedure). However, this downside is not
severe: simply get rid of the FILTER_1 variable when you do not need it
anymore. Having it in the file, besides, can be an upside if you are likely
to use the same filter several times.
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]
> On Behalf Of Bob Schacht
> Sent: Friday, September 23, 2005 6:55 PM
> To: SPSSX-L@LISTSERV.UGA.EDU
> Subject: Temporary Select If
> Running ver. 12.0.1, if I do a temporary select if, and then
> run a command, I get the results, but the "notes" in the
> output don't include any mention of the temporary filter. For
> example, TEMPORARY.
> SELECT IF (V172 = '1' OR V172 = '3' OR V172 = '4' OR V172 = '7') AND
> HrlyWage>=6.25 AND V1 = '26'.
> CROSSTABS /TABLES=V1 BY V244 /FORMAT= AVALUE TABLES
> /CELLS= COUNT /COUNT ROUND CELL .
> The notes show the resulting number of cases, but the filter
> is recorded as "none". How can I get the filter to reflect
> temporary selection criteria?
> Robert M. Schacht, Ph.D. <firstname.lastname@example.org> Pacific Basin
> Rehabilitation Research & Training Center
> 1268 Young Street, Suite #204
> Research Center, University of Hawaii
> Honolulu, HI 96814
> __________ Informacisn de NOD32 1.1230 (20050922) __________
> Este mensaje ha sido analizado con NOD32 Antivirus System