pspp-users
[Top][All Lists]
Advanced

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

Re: how to make a simple table?


From: John Darrington
Subject: Re: how to make a simple table?
Date: Fri, 7 Mar 2014 08:21:40 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Mar 06, 2014 at 09:21:05AM +0100, Elvira Torondel Lopez wrote:
     Hi there I'm stuck,
        
     I want to make a simple table like the one I attach in this e-mail, I
     know the command to do that has some brackets but I don't know where.
     Could you please help me? Thank you.
     
       CROSSTABS
              /TABLES= age  BY origin BY sex
     

Here is one way to do something similar to what you describe:
(I've included some fake data for the purposes of the example).

data list list /origin * sex * age *.
begin data.
1 1 20
1 0 23
0 1 24
1 1 34
0 0 45
1 0 10
1 0 12
end data.

add value label origin 1 'native' 0 'foreign'.
add value label sex 1 'female' 0 'male'.

crosstabs age by origin by sex.


-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

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