Table command in SPSS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Table command in SPSS

Andi-23
Hi there,

I have got a simple problem (at least it seems to me, but I cannot solve
it).
I have got three variables: age (gouped into young and old), gender (male,
female) and monthly income. Now I want to create a table in the following
form: in the column is gender and in the row it is age. Thus, I have got
four cells. For each cell, I want to compute the mean monthly income.
The table command would like something like this:

table/bases=cases
      /ftotal=$g "All"
      /table=age by gender
      /stat=mean(income).

I would be very thankful if anybody could help me with this problem.

Regards,
Andi

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Table command in SPSS

Art Kendall
Haven't used plain TABLES in some years.

If your goal is just to get the table try something like this untested
syntax.

means tables= income by age by gender /cells=mean.

What version of SPSS are you using?  Do you have CTABLES?  If you do the
GUI is an excellent way to get the first draft of the syntax.


Art Kendall
Social Research Consultants

Andi wrote:

> Hi there,
>
> I have got a simple problem (at least it seems to me, but I cannot solve
> it).
> I have got three variables: age (gouped into young and old), gender (male,
> female) and monthly income. Now I want to create a table in the following
> form: in the column is gender and in the row it is age. Thus, I have got
> four cells. For each cell, I want to compute the mean monthly income.
> The table command would like something like this:
>
> table/bases=cases
>       /ftotal=$g "All"
>       /table=age by gender
>       /stat=mean(income).
>
> I would be very thankful if anybody could help me with this problem.
>
> Regards,
> Andi
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> [hidden email] (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
>
>

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Art Kendall
Social Research Consultants