Reordering output

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

Reordering output

Jim Posey
I would like to reorder output files via syntax. The output default is alphabetical as follows:

Agree
Disagree
Strongly Agree
Strongly Disagree

I would like the output to come out in logical order as follows:

Strongly Agree
Agree
Disagree
Strongly Disagree

Any assistance is greatly appreciated.

Jim


=====================
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: Reordering output

Maguin, Eugene
Jim,

I don't understand what you want to do--not at all. Why don't you start with
basics. You say

>>I would like to reorder output files via syntax. The output default is
alphabetical as follows:

Agree
Disagree
Strongly Agree
Strongly Disagree

I would like the output to come out in logical order as follows:

Strongly Agree
Agree
Disagree
Strongly Disagree

Just to start, what command or series of commands did you run to get the
default output?

Gene Maguin

=====================
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: Reordering output

Bruce Weaver
Administrator
And in addition to Gene's question, is the variable string, or numeric with value labels?  I ask, because if it is string, that would cause things to appear in alphabetic order when you ask for a frequency distribution, for example.  


Gene Maguin wrote
Jim,

I don't understand what you want to do--not at all. Why don't you start with
basics. You say

>>I would like to reorder output files via syntax. The output default is
alphabetical as follows:

Agree
Disagree
Strongly Agree
Strongly Disagree

I would like the output to come out in logical order as follows:

Strongly Agree
Agree
Disagree
Strongly Disagree

Just to start, what command or series of commands did you run to get the
default output?

Gene Maguin

=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Reordering output

John F Hall
In reply to this post by Jim Posey
You could try altering your settings to use the code values rather than the labels. I presume you are using 1,2,3,4?  If not, you need to recode the alpha values to numeric first.  If your vars are called a1, a2,...a<n>
 
recode a1 to a<n>
    ('Agree' = 3)('Strongly Agree' = 4)
    ('Disagree' = 2')(Strongly Disagree' = 1)
    (convert) into v1 to v<n> .
 
...or something like that.
----- Original Message -----
Sent: Friday, June 25, 2010 6:03 PM
Subject: Reordering output


I would like to reorder output files via syntax. The output default is alphabetical as follows:

Agree
Disagree
Strongly Agree
Strongly Disagree

I would like the output to come out in logical order as follows:

Strongly Agree
Agree
Disagree
Strongly Disagree

Any assistance is greatly appreciated.

Jim


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