[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: select cases based on multiple attributes
From: |
Jonathan Lowrey |
Subject: |
RE: select cases based on multiple attributes |
Date: |
Tue, 5 Jul 2011 13:21:06 -0400 |
Ah, I think my misunderstanding is that I cannot find the syntax editor. Is
it supposed to be under the "select cases" tab?
-----Original Message-----
From: John Darrington [mailto:address@hidden
Sent: Tuesday, July 05, 2011 1:05 PM
To: Jonathan Lowrey
Cc: address@hidden
Subject: Re: select cases based on multiple attributes
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.