streamlining inputting numerical variable names

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

streamlining inputting numerical variable names

Talino Bruno
I would like to input the item scores for each of my participants from
three measures. The first has 113 items so I am using the first variable
column as a participant id then I wanted to add variables corresponding to
the questionnaire items e.g.,

ID     item 1   item 2  item 3 ……
1
2
3
4
Where the item variable label ending at Item 113. Is there a way for me to
input the variable labels with out having to enter 113 variable names.
Keeping in mind that the numbers in the variable labels are ascending as in
the example. Thanks.

=====================
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: streamlining inputting numerical variable names

Clive Downs
Hi,

I think the following syntax would do this, if you want to set up a file
with items 1 to 132 with similar variable names, without having to type in
132 variable names:

DATA LIST FREE/ id (A4)item1 TO item132.
BEGIN DATA
END DATA.

If you open a new syntax file (File -> New -> Syntax) then paste in the
above syntax commands, it should create an empty file with the variable
names:

 id
 item1
 item2
  [ ...]
 item132


Hope that helps,

Clive.

=====================
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: streamlining inputting numerical variable names

Clive Downs
In reply to this post by Talino Bruno
Hi,

Sorry, I missed out a space between the close parenthesis and "item1"
The following is corrected.

DATA LIST FREE/ id (A4)item1 TO item132.
BEGIN DATA
END DATA.

Clive

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