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 (October 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 1 Oct 2006 23:24:03 -0700
Reply-To:     David L Cassell <davidlcassell@MSN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         David L Cassell <davidlcassell@MSN.COM>
Subject:      Re: how do I create a sas dataset that calculates sum of every 10
              observations?
In-Reply-To:  <200609281915.k8SI8YhD005003@mailgw.cc.uga.edu>
Content-Type: text/plain; format=flowed

chkim@BETHESDA.MED.NAVY.MIL wrote: > >I currently have a dataset with 220 observations. > >I would like to collapse this dataset to 22 observations where each row is >a sum of every 10 consecutive observations. In another words, how do I >create a sas dataset that calculates sum of every 10 observations?

I see you have gotten several excellent suggestions for code. Let me do otherwise.

Why do you want to do this? Some of the reasons that occur to me are really bad ideas, so I just want you to write back to SAS-L and explain to us what is goign on here, and what the 'big picture' is.

thanks, David -- David L. Cassell mathematical statistician Design Pathways 3115 NW Norwood Pl. Corvallis OR 97330

_________________________________________________________________ Express yourself - download free Windows Live Messenger themes! http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-us&source=hmtagline


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