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?







_______________________________________________
Pspp-users mailing list
Pspp-users@gnu.org
https://lists.gnu.org/mailman/listinfo/pspp-users

Reply via email to