[…] which naturally require multiple observations (lags and leads). In a future blog post, I will show how to write SAS/IML functions that compute simple, weighted, and exponentially weighted moving aver…. The matrix language in PROC IML is easier to work with for computations that require accessing …