BookmarkSubscribeRSS Feed
AlexRubin
Calcite | Level 5

proc esm

data = wrk.FCST_15_16_NON_X

out = wrk.f_raw_fcst_NON_X

lead = 53 ;

id week interval = week ACCUMULATE=total ;

by target;

forecast writer_count imputed_mg / model = winters ;

run;

 

ERROR: Unable to forecast the variable writer_count. Forecast values set to missing.

NOTE: The above message was for the following BY group:

target=NON_X

 

 

1 REPLY 1
dw_sas
SAS Employee

Hi Alex,

 

Winters method requires not only the actual (historical) values to be positive, but also the one-step-ahead predicted values.  A plot of the series shows a sharp downward trend toward zero in the historical data, where the Winters model likely returned a non-positive one-step-ahead predicted value.  Because zero or negative values cause the Winters algorithm to fail, PROC ESM issued the error:

 

ERROR: Unable to forecast the variable writer_count. Forecast values set to missing.

 

The other seasonal models supported by PROC ESM do not require the actual values and one-step-ahead predicted values to be positive, so you might want to replace the MODEL=WINTERS option with either MODEL=ADDWINTERS or MODEL=SEASONAL for your data.

 

I hope this helps!

DW

 

 

   

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 1264 views
  • 0 likes
  • 2 in conversation