SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 31582: Creating measures for the course over time.

DetailsCodeResultsAboutRate It
For data mining and statistics it is very important to derive measures on the analysis subject level (e.g. customer) that describe the course over time of transactional data.

Note:

  • PROC REG ist used to calculate the linear trend over time. This is a very efficient method even on large datasets (millions of observations)
  • Do not forget to specify the NOPRINT option in PROC REG
  • You can specify time horizons for the calcuation with a WHERE-statement
  • For segmentation and prediction purposes it is very usefull to create a Group Indicatior variable

This sample was authored by Gerhard Svolba. His book, Data Preparation for Analytics is available from the SAS Publishing online bookstore.


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.