BookmarkSubscribeRSS Feed
KZ1
Calcite | Level 5 KZ1
Calcite | Level 5

Hi,
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
https://svn.r-project.org/R/trunk/src/library/stats/R/stl.R

and the article

https://www.wessa.net/download/stl.pdf

 

Thank you in advance for your help

2 REPLIES 2
PaigeMiller
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 https://documentation.sas.com/?docsetId=etsug&docsetVersion=14.2&docsetTarget=etsug_arima_examples02...

--
Paige Miller
rselukar
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: https://go.documentation.sas.com/?docsetId=etsug&docsetTarget=etsug_ucm_gettingstarted01.htm&docsetV...

 

Also see:

https://support.sas.com/resources/papers/proceedings09/306-2009.pdf for general info on UCM modeling.

http://support.sas.com/resources/papers/proceedings17/SAS0456-2017.pdf for how to adjust for outlier...

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1916 views
  • 0 likes
  • 3 in conversation