Time Series Analysis Package
Example
This example uses the TSMODEL procedure to accumulate a time series:
The following DATA step loads the Sashelp.Air data set onto the CAS server. This DATA step assumes that your CAS engine libref is named mycas, but you can substitute any appropriately defined CAS engine libref.
data mycas.air (replace=yes); set Sashelp.air; run;
proc tsmodel data=mycas.air outarray=mycas.outarray; id date interval=month; var air; outarrays qtravg new_id; require tsa; submit; declare object TSA(tsa); rc=TSA.ACCUMULATE(date, air, 'QTR', new_id, qtravg, 'AVERAGE', , ); endsubmit; run;
Copyright © SAS Institute Inc. All rights reserved.
Last updated: June 14, 2018