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 (March 2012)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 28 Mar 2012 06:02:01 -0700
Reply-To:     David Marso <david.marso@gmail.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         David Marso <david.marso@gmail.com>
Subject:      Re: Summing a variable.
In-Reply-To:  <1332937373438-5600280.post@n5.nabble.com>
Content-Type: text/plain; charset=us-ascii

Once again, LAG is your friend. COMPUTE GOALSUM=SUM(GOAL,LAG(GOALSUM)).

drfg2008 wrote > > SPSS 20 Windows > > I have the variable "goals", which measures the goals at each time (see > below: one goal at each time) and I just want the variable "goals" to be > added up (like in the variable "GoalSum"). > > Goal GoalSum Minutes > > 1 1 3 > . 1 4 > . 1 5 > 1 2 6 > 1 3 7 > . 3 8 > 1 4 9 > 1 5 10 > 1 6 11 > . 6 12 > . 6 13 > . 6 14 > . 6 15 > . 6 16 > 1 7 17 > 1 8 18 > . 8 19 > 1 9 20 > . 9 21 > 1 10 22 > > > Thanks for help. > > Frank >

-- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Summing-a-variable-tp5600280p5600405.html Sent from the SPSSX Discussion mailing list archive at Nabble.com.

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you.

This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you.

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


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