LinusH wrote:
One "easy" way to do it is to create a multilabel format that groups your moving quarters.
Then use that format together with PROC MEANS, using the MEAN statistic.
http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n13dhme6o4ut3en1u8e58r16b3zf.htm
Unless I am missing something, this seems like an awfully work-intensive way to get moving averages, despite your use of the word "easy". Don't you have to pre-define the quarters as overlapping formats in a PROC FORMAT to make this work? Which implies in advance that you have to know exactly what quarters are in the database, and code that up into PROC FORMAT. If you have 50 quarters, that's a lot of PROC FORMAT coding, and the slightest error in there invalidates the results. Am I right, or did I miss something?
... View more