[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question regarding Select Cases

From: Alan Mead
Subject: Re: Question regarding Select Cases
Date: Thu, 14 Jan 2016 12:19:53 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0


I've never used the GUI to select cases but when I choose Data > Select Cases and move a variable into "Use filter variable" it generates "FILTER BY" syntax and that syntax is explained here:

which only works if you have already created a filter variable with values 1 and 0. I prefer the old way of doing this, which requires syntax.  If I want to run frequencies on men (SEX=0) then I type this:

Select if( SEX = 0 ).

What this does is select the cases where SEX equals zero but only for the next statistical routine.  So, the "Temporary." command is automatically undone after FREQ runs.

If you leave off the "Temporary." command, the dataset in memory is permanently changed. Sometimes I do that and just don't save it.


On 1/14/2016 12:05 PM, Ed Nelson wrote:
Could someone help me on how to use the select cases option.  Let's say I want to select out the males for analysis.  I click on Data and on Select Cases.  I'm assuming I want to use a filter variable and would put SEX into the box to the right of use filter variable.  But then what?  When I click on OK I don't see any indication that it has selected out the males.  If I run a frequency distribution for SEX I still get both males and females.  SPSS will put a line through the row number for the cases that have been filtered out but PSPP doesn't.  Thanks.


Ed Nelson
Professor Emeritus of Sociology
CSU Fresno

Pspp-users mailing list


Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.

science + technology = better workers

+815.588.3846 (Office)
+267.334.4143 (Mobile)

Announcing the Journal of Computerized Adaptive Testing (JCAT), a
peer-reviewed electronic journal designed to advance the science and
practice of computerized adaptive testing:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]