BookmarkSubscribeRSS Feed
pilicasalv
Fluorite | Level 6

Hi folks

I  am new to SAS and I am contemplating to use the command PROC ESM. I have 3 monthly employment series from Jan 2000 to July 2016. The 3 series have some missing values.   Also 2 of the variables don't have any values at the beginning. Is this command the right one? Should I do something different if the first values of the series are missing?

Another option is to use moving average to estimate the missing months. What command should I use in SAS?

 

Thanks

Maria

 

2 REPLIES 2
Astounding
PROC Star

I hope somebody has a better way ... I always have had to jump through multiple hoops when there are missing values at the beginning of the series.  My steps:

 

(1) Forecast missing values, using something like ID month_begin_date interval=monthly;  That still leaves missing values at the beginning of the series.

 

(2) Create an artificial variable, with month beginning dates, but it backwards order.  So the first MONTH_BEGIN_DATE has the highest value for this artificial variable, and the last MONTH_BEGIN_DATE has the lowest value.  But the artificial variable must still take on values that represent the first day of the month.  Sort the data by this artificial variable.

 

(3) Forecast missing values, using something like ID ARTIFICIAL_DATE interval=monthly;

 

(4) Drop the ARTIFICIAL_DATE.

 

That's a lot to ask if  you are new to SAS.  So I hope somebody out there has a better way.

pilicasalv
Fluorite | Level 6
Thank you! Will take into account your suggestion 🙂

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