BookmarkSubscribeRSS Feed
Calcite | Level 5 KZ1
Calcite | Level 5

is there any proc statement in SAS that enables to use STL (like in R).

I found a source code for STL function in R but unfortunately I am not able to implement this solution in SAS.


Here are links to the source code

and the article


Thank you in advance for your help

Diamond | Level 26

I am not familiar with STL, but of course SAS does have PROC LOESS that might be able to do this.


PROC ARIMA can fit seasonal time series, see

Paige Miller
SAS Employee

As far as I can tell, PROC LOESS by itself might not give you the decomposition you want (it could be used recursively to within the overall algorithm).  PROC ARIMA also is not directly useful for this.  You can use PROC UCM (both ARIMA and UCM are in SAS/ETS) to get such a decomposition.  See the getting started example in the UCM doc:


Also see: for general info on UCM modeling. for how to adjust for outlier...




Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.


Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 


Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3 in conversation