Date: Thu, 12 Apr 2007 22:59:01 -0400
Reply-To: William <wcg@PDX.EDU>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: William <wcg@PDX.EDU>
Subject: next variable
I an trying, without success, to build a group a variables, each based on
the sequentially on the next case in the original data. What I've got is:
DO REPEAT S = PS1 TO PS93.
COMPUTE S = XXXX / TOT_ART.
What I need is to be able to replace the 'XXXX' with the next variable in
the original data every time so that PS1 = var1/TOT_ART, PS2 =
var2/TOT_ART,...PS93 = var93/TOT_ART for each case. The various PS#'s are
then fed into a new equation.