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 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 11 Mar 1998 12:13:24 -0200
Reply-To:     Rogerio Porto <deporto@GUARANY.CPD.UNB.BR>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Rogerio Porto <deporto@GUARANY.CPD.UNB.BR>
Subject:      Re: Wanted: Simple moving averages program
Content-Type: text/plain; charset=ISO-8859-1

Hello Heijden, take a look at PROC EXPAND sintax. You can do something like this:

proc expand data=a; method=none; convert variable=newname/ transformout=(movave 5); run; proc print data=a; run;

You must get a variable called 'newname' that contains the moving average of five neighboring values. You can get weighted moving averages too.

Hope this help you.

Rogerio Porto.


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