[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: entering data into PSPP
From: |
John Darrington |
Subject: |
Re: entering data into PSPP |
Date: |
Fri, 3 Feb 2006 08:34:46 +0800 |
User-agent: |
Mutt/1.5.9i |
On Thu, Feb 02, 2006 at 04:07:56PM -0800, Ben Pfaff wrote:
> However, I don't understand the format of the data list
> command. Let's say I have two groups of scores. One for
> tigers and another for other cats. For tigers I have the
> following scores: 9 24 32 11 19 For the other cats: 24 24 32 48
> Can somebody give me an example of how I would enter this data?
You'd have to decide how to distinguish the groups. I suspect
you'd have two variables: "animals" and "score", and you'd want a
syntax file that looks something like this:
data list /animal 1-5(a) score 7-8.
begin data.
tiger 9
tiger 24
tiger 32
tiger 11
tiger 19
other 24
other 24
other 32
other 48
end data.
But I think it's easier to do:
data list list /animal (a10) score *.
begin data.
tiger 9
tiger 24
tiger 32
tiger 11
tiger 19
cat 24
cat 24
cat 32
cat 38
end data.
That way, the data is not so fussy about the amount of whitespace you
type. (But your animal is limited to 10 characters in this example).
J'
--
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