LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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. END REPEAT.

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.

Any ideas?

William.


Back to: Top of message | Previous page | Main SPSSX-L page