why not write something like
do repeat v = v3 to v62 /vsd = vsd3 to vsd62.
- comp vsd = (v - m1) / sdv1.
instead of the two do repeats?
From: Boris Kleber [mailto:Boris.Kleber@uni-konstanz.de]
Sent: Wednesday, November 12, 2003 3:56 PM
Subject: "do repeat" without writing variables
I have a rather simple syntax question for you but I can't really find the
answer in the SPSS Syntax. The following Syntax:
compute m1 = MEAN (v3 to v62).
compute sdv1 = SD(v3 to v62).
do repeat v = v3 to v62 /m = m3 to m62.
- comp m = v - m1.
do repeat m = m3 to m62 /vsd = vsd3 to vsd62.
- comp vsd = m / sdv1.
...creates a set of m-variables and sdv variables. I actually only need the
sdv variables and m is just the step towards them. Certainly I can modify
the command in order not to write the m-variables. Could someone give me a
Thanks a lot, Boris
Center for Psychiatry Reichenau
Phone: +49 7531 88 4606