[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to make a simple table?
From: |
Elvira |
Subject: |
Re: how to make a simple table? |
Date: |
Fri, 7 Mar 2014 08:48:16 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
John Darrington <john <at> darrington.wattle.id.au> writes:
>
> 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.
>
Thank for your help John,
But I read in the pspp manual (chapter 12, CROSSTABS), that there is a
syntaxis with brackets that it should work, something like this:
CROSSTABS
/TABLES= age BY origin [BY sex]
but it doesn't.
Somebody knows why?