Hi all,
I have daily sales data which display strong weekly seasonality as well as monthly seasonality. It means that there was spike at the end of each week and greater spike at the end of each month. To adjust the aggregated weekly data for their seasonality, can I use X12 procedure as monthly data?
Thank you as always!
Lizi
Hello -
If it is only one series you are dealing with you don't need to worry about HPFTEMPRECON, as it is designed to handle large hierarchical projects.
One approach might be to do the following:
Thanks,
Udo
Hello -
If you have access to SAS Forecast Server you may consider the following approach:
You may find this thread useful, too: https://communities.sas.com/message/151039
Thanks,
Udo
Thanks, Udo!
Unfortunately I don't have SAS Forecast Server. I have looked into the HPFTEMPRECON procedure, and it looks that it only works in the Forecast Server. Would there be other way that works in the regular environment?
Thanks again!
Lizi
Hi Lizi -
Many many time series are we talking about?
Thanks,
Udo
Udo, there are only two-year daily sales data, which have decent weekly and monthly seasonality.
Thanks,
Lizi
Lizi -
I should have been clearer in my question: I was wondering how many products (or sales) you are trying to forecast. Are we talking about 1 product, 10s, 100s, 1000s, more?
In general having only 2 years of daily data will be a challenge - as you observed each day only twice at max. So depending on your patterns coming up with accurate models might be difficult.
Thanks,
Udo
Thanks, Udo.
Right now I am only looking at one product. I thought about the short time period I am looking at as well. But unfortunately the project is to find how marketing campaign helps predict retail sales, and we only have two-year marketing campaign data. I have to just use less data points.
I tried vector autoregression model with unadjusted data and hope to run the model again after the data are seasonally adjusted.
Thank you!
Lizi
Hello -
If it is only one series you are dealing with you don't need to worry about HPFTEMPRECON, as it is designed to handle large hierarchical projects.
One approach might be to do the following:
Thanks,
Udo
You are so awesome, Udo!
I'll try it out and let you know.
Thanks a bunch!
Lizi
Hi Udo,
One more question for the adjustment:
In the second step "2. Look at the residuals of the daily forecast...", create a new data set that only includes the end of week period. Then your example talked about the end of month peak. Also, the following steps, 4 and 5, they are about adjusting the forecast with end of month forecast. Should the example and the following steps be about adjusting the forecast with end of week forecast, rather than end of month forecast?
I thought that the process would be to adjust with end of week forecast and then adjust with end of month forecast.
Sorry for endless question.
Thanks a lot!
Lizi
Hi Lizi -
Of course, I should have been more careful in my description - sorry for that.
Please read my response in combination with my earlier response:
Thanks,
Udo
Hi Udo,
Continuing from my previous ask, I was wondering whether I am supposed to use seasonally adjusted data series, i.e. forecast of sales with residual forecasts of spikes, in a vector autoregression model (VAR) or any regression analysis.
The purpose of doing seasonal adjustment is to get better prediction in a VAR. Please advice.
Thanks again!
Lizi
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.