BookmarkSubscribeRSS Feed
chemicalab
Fluorite | Level 6

Hi all,

My case is the following, i am trying to apply UCM on a time series containing volume as Y and a few promotion variables as X1-X....

The problem i have is that the series is not complete meaning , there can be a gap between 4July and 18july (11july missing) as well as larger gaps for example between 19september and 19december where all info or dates between them are missing. Since my goal is to forecast shall I:

1.  perhaps drop UCM (since an id error appears due to the gaps) ?

2. Is there any other modelling technique to overcome that problem?

3. Fill in the gaps by myself?

Thnx in advance

1 REPLY 1
udo_sas
SAS Employee

Hello -

All time series based forecasting methods have a similar requirement for the ID variable (date or datetime information): it needs to be complete, with other words missing values in the time ID are not allowed. As such you will have to fill in these gaps for the time ID - for example by using PROC TIMESERIES:

data have;

set sashelp.air;

if date="01JAN57"d then delete;

if date="01SEP59"d then delete;

run;

proc timeseries data=have out=want;

id date interval=month accumulate=total;

var air;

run;

One the time id is intact, for UCM the following holds true (from documentation): "Embedded missing values in the dependent variable usually cause no problems in UCM modeling. However, no embedded missing values are allowed in the predictor variables."

Depending on your business question at hand you may want to impute missing values of the dependent varialbe using PROC TIMESERIES for example (see setmissing option).

Thanks,

Udo

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1127 views
  • 0 likes
  • 2 in conversation