BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mmyrto
Quartz | Level 8

I have monthly deactivation data  and i want to forecast 6 months into the future with SAS forecast studio for desktop. If  a month has more weekend days this year then deactivations will be lower / if less weekend days in the month the more deactivations. one way i thought of taking care of this is to calculate avg daily deactivations each month (based on working days of the month) then multiply the predictions by the working days in each predicted month. Question is How can i calculate the new Confidence Intervals?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
alexchien
Pyrite | Level 9

i just took a look that the data, i don't think the data in the forecast horizon periods are populated correctly.

1. I assumed the Region is the BY variable. There should be no missing values in the horizon periods.

2. You should populate the weekdays variable for each of the BY variable.

 

Please take a look at the attached worksheet with the correct horizon data.

View solution in original post

11 REPLIES 11
alexchien
Pyrite | Level 9
There are 2 approaches on top of my head:
1. create an input variable "number of weekend days" and incorporate it into the model (has to be either UCM or ARIMA)

2. Use the ADJUSTMENT option to first pre-adjust the monthly series, forecast the adjusted series, and post-adjust the forecasts. Forecast studio will compute the adjusted CI for you.
mmyrto
Quartz | Level 8

I did that but have the following challenge: I have the number of working days for the months i have data how can SAS know the number of working days in the predicted months so the prediction is multiplied byt the number of working days?

alexchien
Pyrite | Level 9
you will need to populate the input/adjustment variables for the forecast horizon periods, not just the historical periods.
mmyrto
Quartz | Level 8

ok I did that seems to be working but i noticed the following with the C.I see attached. Very narrow,but not for the out of sample predictions, any explanation for that?

 

 

 


c.i.PNG
alexchien
Pyrite | Level 9
would you be able to share the data with me? Something is missing but it is hard to tell from the forecast plot. thanks
mmyrto
Quartz | Level 8

find attached.

thanks

mmyrto
Quartz | Level 8

X1 is the dependent var

alexchien
Pyrite | Level 9

i just took a look that the data, i don't think the data in the forecast horizon periods are populated correctly.

1. I assumed the Region is the BY variable. There should be no missing values in the horizon periods.

2. You should populate the weekdays variable for each of the BY variable.

 

Please take a look at the attached worksheet with the correct horizon data.

mmyrto
Quartz | Level 8

thank you!!!

Reeza
Super User
See if you can switch to more granular data at all, if you have daily data, it may be worth working at a week level.
mmyrto
Quartz | Level 8

at this point can't get more granular data.

SAS Innovate 2025: Register Now

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!

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
  • 11 replies
  • 3359 views
  • 0 likes
  • 3 in conversation