Not tested:
DO REPEAT x = sess2 TO sess38
/y = diff2 TO diff38.
COMPUTE y = (x - sess1)/c.
END REPEAT.
EXECUTE.
--jim
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of
Martin Sherman
Sent: Friday, October 20, 2006 11:08 AM
To:
[hidden email]
Subject: using vector to do a repeating subtraction
Dear List. I have the following situation which should be easy to do.
I have 38 variables which represent scores on therapy sessions 1 thru
38. I want subtract session one scores from each of the 37 remaining
scores and then divide that by a constant. So that I will now have 37
new variables. Thanks, martin sherman