pspp-users
[Top][All Lists]
Advanced

[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

Ed,

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:

http://www.gnu.org/software/pspp/manual/html_node/FILTER.html

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:

Temporary.
Select if( SEX = 0 ).
FREQ / AGE WHATEVER.

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.

-Alan


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

--
Ed Nelson
Professor Emeritus of Sociology
CSU Fresno
559-978-9391
address@hidden


_______________________________________________
Pspp-users mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/pspp-users

-- 

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

science + technology = better workers

+815.588.3846 (Office)
+267.334.4143 (Mobile)

http://www.alanmead.org

Announcing the Journal of Computerized Adaptive Testing (JCAT), a
peer-reviewed electronic journal designed to advance the science and
practice of computerized adaptive testing: http://www.iacat.org/jcat

reply via email to

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