auto create value labels

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

auto create value labels

wsu_wright
I have data from some of our student information systems that has data values seperated from value labels such as:

1  freshmen
2  sophomore

This occurs for strings too:
BA Business
EN engineering

Is there a way in syntax to create the value labels for the code values from the descriptor columns?


David

=====================
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: auto create value labels

Garry Gelade
David

You can do this in Python, using the genValueLabels function which sits in
the spssaux2 module.  See John Peck's post of 10th Dec 2008 for details.

Garry Gelade

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
David Wright
Sent: 21 June 2009 12:43
To: [hidden email]
Subject: auto create value labels

I have data from some of our student information systems that has data
values seperated from value labels such as:

1  freshmen
2  sophomore

This occurs for strings too:
BA Business
EN engineering

Is there a way in syntax to create the value labels for the code values from
the descriptor columns?


David

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

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4174 (20090620) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4174 (20090620) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.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