proc esm data=forecast outfor=output1 print=all;
id sas_yyyymm interval=month;
proc forecast data=forecast interval=month
method=expo weight=0.001 trend=1
out=out outfull outresid outest=est;
Use the same data set.
Use Simple Exponential Smoothing model in ESM and FORECAST.
The ESM gave the level weight esitmate=0.001.
I plug this as weight in FORECAST.
But the predict results from those two procedures are different.
Why the same SES with same weight got the different prediction?
Which version of SAS are you in?
to find out.
In my SAS 9.4 M7 (9.4 Maintenance Level 7) PROC FORECAST is still there in the software, but it is no longer in the accompanying documentation.
I know the doc was saying since a long time that the FORECAST procedure was obsolete.
Now I cannot even locate the doc for FORECAST procedure anymore (supporting the hypothesis that it is really obsolete!!).
The last documentation for PROC FORECAST can be seen for :
SAS 9.4 / Viya 3.3.
SAS 9.4 / Viya 3.4
, there's no more documentation for PROC FORECAST.
You are on VIYA 3.5.
Do you absolutely need PROC FORECAST?
It's very sub-optimal compared to ESM procedure (the latter is optimizing smoothing weights, the former is not).
Even with same smoothing parms, differences can be due to missing value handling, forecast initialization and so on ...
Are you still struggling with this?
If there are no missing values I suppose it has to do with the backcast initialization
(i.e. the number of observations used to initialize the backcast states).
But again, consider PROC FORECAST as obsolete.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.