Forward Moving Average
The Forward Moving Average function computes a moving average of the last “NAVG”
values for regular or irregular interval time series data. The number of values for
averaging, “NAVG,” must be greater than 2. The first NAVG-1 values in the resultant
time series are set to missing.
If the averaging interval contains a missing value, the smoothed value is computed from the remaining valid values in the interval. However, if there are less than 2 valid values in the interval, the value in the resultant data is set to missing.
Forward Moving Average
To compute the forward moving average for time series data: