The SIMILARITY Procedure |
The SIMILARITY procedure can be used to form time series data from transactional data.
ACCUMULATE= option
SETMISSING= option
ZEROMISS= option
The accumulated time series can then be transformed to form the working time series. Transformations are useful when you want to stabilize the time series before computing the similarity measures. Simple and seasonal differencing are useful when you want to detrend or deseasonalize the time series before computing the similarity measures. Often, but not always, the TRANSFORM=, DIF=, and SDIF= options should be specified in the same way for both the target and input variables.
TRANSFORM= option
DIF= and SDIF= option
TRIMMISSING= option
PRINT=DESCSTATS option
After the working series is formed, it can be treated as an ordered sequence that can be normalized or scaled. Normalizations are useful when you want to compare the "shape" or "profile" of the time series. Scaling is useful when you want to compare the input sequence to the target sequence while discounting the variation of the target sequence.
NORMALIZE= option
SCALE= option
After the working sequences are formed, similarity measures can be computed between input and target sequences.
SLIDE= option
COMPRESS= and EXPAND= option
MEASURE= and PATH= option
The SLIDE= option is used to specify observation-index sliding, seasonal-index sliding, or no sliding. The COMPRESS= and EXPAND= options are used to specify the warping limits. The MEASURE= and PATH= options are used to specify how the similarity measures are computed.
Note: This procedure is experimental.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.