[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: select cases based on multiple attributes
From: |
John Darrington |
Subject: |
Re: select cases based on multiple attributes |
Date: |
Tue, 5 Jul 2011 17:05:20 +0000 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Like you say, there isn't currently a dialog box for the select command.
However all commands can be run from the syntax editor just as they can in spss.
In your example, the following should work:
select if area = "A" and species = "goat" or area = "B" and species = "goat".
This assumes of course that area and species are both string variables.
(Note however, that pspp assigns equal precedence to the AND and OR operators,
so they will be evaluated in a strictly left to right fashion. This behaviour
is exactly the same as spss, but quite unlike most other languages so you
might want to add some parentheses to make your intentions explicit.)
J'
On Tue, Jul 05, 2011 at 12:27:48AM -0400, Jonathan Lowrey wrote:
I am running psppire.exe 0.7.8-gb2274e.
I have just started using pspp and I love it. I have experience with spss
and am wondering if there is a way to emulate the select by case option in
spss.
I see that there is no Boolean command line box or dialog box. Is there
any
way to do the type this type of selecting?
Basically, I need to select cases based on this line of logic.
IF: "area"="A" and "species"="goat" or "area" = "A" and "species"=
"sheep"
_______________________________________________
Pspp-users mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/pspp-users
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature