Value & Lables display on data

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

Value & Lables display on data

Peter Omondi
Hi All,

I would like to someone to assist me and show me the syntax which can be used to display both value and lables on the SPSS data.
Reply | Threaded
Open this post in threaded view
|

Re: Value & Lables display on data

Bruce Weaver
Administrator
Look up the SET command in the FM, and pay attention to the section headed "ONUMBERS, OVARS, TNUMBERS, and TVARS Subcommands".


Peter Omondi wrote
Hi All,

I would like to someone to assist me and show me the syntax which can be used to display both value and lables on the SPSS data.
--
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: Value & Lables display on data

Anthony Babinec
In reply to this post by Peter Omondi
Have you considered either the VALUELABEL function or the FREQUENCIES
procedure?
VALUELABELS extracts value labels; you can put them into a new variable.
FREQUENCIES shows both values and labels when you set a global option.
Take a look at Edit -> Options -> Output Labels and look at the drop bar
"Variable values in labels shown as:." Since you have asked about syntax,
see the SET command below.

Try running the following example.

SET TVars=Both TNumbers=Both ONumbers=Labels OVars=Both.
data list / color 1.
value labels
 color 1 'red' 2 'blue' 3 'yellow'.
begin data.
1
2
3
3
end data.
string colorlabels(a6).
compute colorlabels=valuelabel(color).
list variables color colorlabels.
freq var color.

Tony Babinec
[hidden email]

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Peter Omondi
Sent: Tuesday, April 17, 2012 1:14 AM
To: [hidden email]
Subject: Value & Lables display on data

Hi All,

I would like to someone to assist me and show me the syntax which can be
used to display both value and lables on the SPSS data.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Value-Lables-display-on-data-t
p5645722p5645722.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

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