Generating the categories and values for categorical variables

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

Generating the categories and values for categorical variables

Johnny Amora
Dear all,

I have 30 categorical variables with 2 to 10 categories for each variable.  I want to produce outputs showing the values used and categories for each variable.  For example, suppose the variables are gender(1=male,2=female), marital (1=single, 2=maried, 3=widowed), and Religion(1=Catholic, 2=others).  Then I want ourputs like as follows:

Gender       1=male
                 2=female

Marital       1=single
                 2=married
                 3=separated
Religion     1=Catholic
                2=others

How to generate such outputs for the 30 variables using syntax or point-click.

Thank you.
Johnny


What are the top 10 Pinoy street foods?
Yummy! Find out on Yahoo! Answers
Reply | Threaded
Open this post in threaded view
|

Re: Generating the categories and values for categorical variables

Mark Webb-5
display dictionary.
exe.
Mark Webb

+27 21 786 4379
+27 72 199 1000
Skype - webbmark
[hidden email]


Johnny Amora wrote:
Dear all,

I have 30 categorical variables with 2 to 10 categories for each variable.  I want to produce outputs showing the values used and categories for each variable.  For example, suppose the variables are gender(1=male,2=female), marital (1=single, 2=maried, 3=widowed), and Religion(1=Catholic, 2=others).  Then I want ourputs like as follows:

Gender       1=male
                 2=female

Marital       1=single
                 2=married
                 3=separated
Religion     1=Catholic
                2=others

How to generate such outputs for the 30 variables using syntax or point-click.

Thank you.
Johnny


What are the top 10 Pinoy street foods?
Yummy! Find out on Yahoo! Answers
===================== 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: Generating the categories and values for categorical variables

Albert-Jan Roskam
In reply to this post by Johnny Amora
hi!

You can use DISPLAY DICTIONARY for that. Have a look in the syntax guide for further specifications.

Cheers!!
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Before you criticize someone, walk a mile in their shoes, that way
when you do criticize them, you're a mile away and you have their shoes!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--- On Sun, 10/11/09, Johnny Amora <[hidden email]> wrote:

> From: Johnny Amora <[hidden email]>
> Subject: [SPSSX-L] Generating the categories and values for categorical              variables
> To: [hidden email]
> Date: Sunday, October 11, 2009, 12:07 PM
> Dear
> all,
>
> I have 30 categorical variables with 2 to 10 categories for
> each variable.  I want to produce outputs showing the
> values used and categories for each variable.  For
> example, suppose the variables are gender(1=male,2=female),
> marital (1=single, 2=maried, 3=widowed), and
> Religion(1=Catholic, 2=others).  Then I want ourputs
> like as follows:
>
> Gender       1=male
>
> 2=female
>
> Marital       1=single
>
> 2=married
>
> 3=separated
> Religion
>  1=Catholic
>
> 2=others
>
> How to generate such outputs for the 30 variables using
> syntax or point-click.
>
> Thank you.
> Johnny
>
>
>        What
> are the top 10 Pinoy street foods?
> Yummy! Find out on Yahoo! Answers

=====================
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: Generating the categories and values for categorical variables

Peck, Jon
If you just want the dictionary information, Display Dictionary works fine.  If you want the output to include unlabelled values (and some simple summary statistics) use the CODEBOOK built-in command or the older CODEBOOK extension command.

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Albert-Jan Roskam
Sent: Sunday, October 11, 2009 4:25 AM
To: [hidden email]
Subject: Re: [SPSSX-L] Generating the categories and values for categorical variables

hi!

You can use DISPLAY DICTIONARY for that. Have a look in the syntax guide for further specifications.

Cheers!!
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Before you criticize someone, walk a mile in their shoes, that way
when you do criticize them, you're a mile away and you have their shoes!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--- On Sun, 10/11/09, Johnny Amora <[hidden email]> wrote:

> From: Johnny Amora <[hidden email]>
> Subject: [SPSSX-L] Generating the categories and values for categorical              variables
> To: [hidden email]
> Date: Sunday, October 11, 2009, 12:07 PM
> Dear
> all,
>
> I have 30 categorical variables with 2 to 10 categories for
> each variable.  I want to produce outputs showing the
> values used and categories for each variable.  For
> example, suppose the variables are gender(1=male,2=female),
> marital (1=single, 2=maried, 3=widowed), and
> Religion(1=Catholic, 2=others).  Then I want ourputs
> like as follows:
>
> Gender       1=male
>
> 2=female
>
> Marital       1=single
>
> 2=married
>
> 3=separated
> Religion
>  1=Catholic
>
> 2=others
>
> How to generate such outputs for the 30 variables using
> syntax or point-click.
>
> Thank you.
> Johnny
>
>
>        What
> are the top 10 Pinoy street foods?
> Yummy! Find out on Yahoo! Answers

=====================
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