|
Hi Boris,
why not write something like
do repeat v = v3 to v62 /vsd = vsd3 to vsd62.
- comp vsd = (v - m1) / sdv1.
end repeat.
instead of the two do repeats?
Greetings
Jan
-----Original Message-----
From: Boris Kleber [mailto:Boris.Kleber@uni-konstanz.de]
Sent: Wednesday, November 12, 2003 3:56 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: "do repeat" without writing variables
Hello
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).
execute.
compute sdv1 = SD(v3 to v62).
execute .
do repeat v = v3 to v62 /m = m3 to m62.
- comp m = v - m1.
end repeat.
do repeat m = m3 to m62 /vsd = vsd3 to vsd62.
- comp vsd = m / sdv1.
end repeat.
execute.
...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
tip?
Thanks a lot, Boris
-------------------------
Dipl. Psych.
Boris Kleber
EEG Laboratory,
Center for Psychiatry Reichenau
Lake Constance
Phone: +49 7531 88 4606
E-Mail: Boris.Kleber@uni-konstanz.de
|