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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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