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
Content-Type: text/plain; format=flowed
>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.
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Express yourself - download free Windows Live Messenger themes!