Date: Sun, 24 Mar 1996 05:52:16 GMT
Reply-To: "James P. Pat Johnson" <jpjohn@IX.NETCOM.COM>
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: "James P. Pat Johnson" <jpjohn@IX.NETCOM.COM>
Organization: Netcom
Subject: Creating duplicate set of variables
I am writing a syntax file to score a questionnaire which has 240
items (Q1 to Q240). The items are scored 1 for true and 2 for false.
I want to preserve these items and create a duplicate set of
additional variables, say QQ1 to QQ240 with identical values as the
first set. So far I've only been able to create the second set of
variables with a constant value, as in
DO REPEAT R = QQ1 TO QQ240.
R = 0.
END REPEAT.
Now I have my second set but the values are all 0 which they should
be. I've tried every combination I can thing of using RECODE, IF,
ELSE, etc. but I always come up with errors. Is there a way to recode
the second set of variables (QQ1 to QQ240) with the identical values
found in Q1 to Q240 without 240 IF statements? I seem to be stuck on
how to do this.
I want to preserve the original responses by the subjects because I
have to recode for reversals and then recode to do sums. I can do
that on the original items, and it works fine, but I'd like to also
keep the original responses by the subjects intact.
********************************
James P. (Pat) Johnson
JPJOHN@IX.NETCOM.COM
********************************