repeat value labels

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

repeat value labels

J McClure
Hi,
I'm new to SPSS. (Windows XP, PASW 18 grad pack) I imported my research data from an excel file. It has the variable names and data values and am now filling in the other data properties. Multiple variables have the same value labels and I want to "cut and paste" instead of entering them repeatedly.
I'm using point and click (I don't know how to use syntax yet-not even the basics). The variables have 4 levels:  0=not at all, 1=several days, 2=more than half the days, 3=nearly every day.
Thanks for any help,
Jan
===================== 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: repeat value labels

Rick Oliver-3

You can define and copy and paste value labels in Variable View of the Data Editor. Click the Values cell for one of the variables to define the value labels, and then copy and paste to the other variables after you are done.

Alternatively, in syntax:

value labels  <varlist> 0 "not at all" 1 "several days" ...
etc.


From: J McClure <[hidden email]>
To: [hidden email]
Date: 07/21/2010 02:46 PM
Subject: repeat value labels
Sent by: "SPSSX(r) Discussion" <[hidden email]>





Hi,
I'm new to SPSS. (Windows XP, PASW 18 grad pack) I imported my research data from an excel file. It has the variable names and data values and am now filling in the other data properties. Multiple variables have the same value labels and I want to "cut and paste" instead of entering them repeatedly. I'm using point and click (I don't know how to use syntax yet-not even the basics). The variables have 4 levels:  0=not at all, 1=several days, 2=more than half the days, 3=nearly every day.
Thanks for any help,
Jan

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

peter link
In reply to this post by J McClure
Jan -
 
I am using v11.5, so this may have changed, but I doubt it.  Click on the 'Variable View' tab and then right click in the values box, whose values you want to copy.  Click copy and then you can paste the values for whichever variables you want (just as you would in Excel, for example).
 
Peter Link
VA San Diego Healthcare System
-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of J McClure
Sent: Wednesday, July 21, 2010 12:46 PM
To: [hidden email]
Subject: [SPSSX-L] repeat value labels

Hi,
I'm new to SPSS. (Windows XP, PASW 18 grad pack) I imported my research data from an excel file. It has the variable names and data values and am now filling in the other data properties. Multiple variables have the same value labels and I want to "cut and paste" instead of entering them repeatedly.
I'm using point and click (I don't know how to use syntax yet-not even the basics). The variables have 4 levels:  0=not at all, 1=several days, 2=more than half the days, 3=nearly every day.
Thanks for any help,
Jan
===================== 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: repeat value labels

John F Hall
In reply to this post by Rick Oliver-3
Rick's solution is neatest.  Same applies for missing values.  See my tutorials:
 
1.4.1a   Stage 2: Completing your data dictionary  for SPSS 15, now split into:

1.4.1    
Labelling your variables in SPSS  (Screenshots from SPSS/PASW 18,
1.4.2     Labelling your values in SPSS                 but everything works with 15)
 
It's always easier to use syntax for basic operations like this.
 
My tutorials are aimed at users new to data matrices and also to SPSS, so you should perhaps browse around.
 
John F Hall (retired)
email:                    [hidden email]
Website:               www.surveyresearch.weebly.com
----- Original Message -----
Sent: Wednesday, July 21, 2010 9:56 PM
Subject: Re: repeat value labels


You can define and copy and paste value labels in Variable View of the Data Editor. Click the Values cell for one of the variables to define the value labels, and then copy and paste to the other variables after you are done.

Alternatively, in syntax:

value labels  <varlist> 0 "not at all" 1 "several days" ...
etc.


From: J McClure <[hidden email]>
To: [hidden email]
Date: 07/21/2010 02:46 PM
Subject: repeat value labels
Sent by: "SPSSX(r) Discussion" <[hidden email]>





Hi,
I'm new to SPSS. (Windows XP, PASW 18 grad pack) I imported my research data from an excel file. It has the variable names and data values and am now filling in the other data properties. Multiple variables have the same value labels and I want to "cut and paste" instead of entering them repeatedly. I'm using point and click (I don't know how to use syntax yet-not even the basics). The variables have 4 levels:  0=not at all, 1=several days, 2=more than half the days, 3=nearly every day.
Thanks for any help,
Jan

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