Desktop productivity for business analysts and programmers

Extend date series in EGuide to forecast

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 14
Accepted Solution

Extend date series in EGuide to forecast

I am working on a forecasting project where I am calculating moving averages.  I would like to calculate these monthly moving averages through July 2014 in SAS Enterprise Guide, however, the dates in my data set only go to July 2013 (because the historical data is only reported to the present date).  I have done extensive manipulation of my data set and it is difficult for me to go back and add those dates to the end of the Excel file that I originally pulled the data from.  Does anyone know of an easy way to add the dates to the end of my dataset and calculate the moving averages post-manipulation?


Accepted Solutions
Solution
‎07-18-2013 04:24 PM
Grand Advisor
Posts: 17,396

Re: Extend date series in EGuide to forecast

You can create the dates/data in a dataset and then append them, and then calculate your moving averages.

Does that make sense to you?

If so, provide a sample of what your data looks like, what you expect as output and someone can help with the coding or instructions on how to use EG to get it done.

View solution in original post


All Replies
Valued Guide
Posts: 3,206

Re: Extend date series in EGuide to forecast

If your dataset is ordered ... would the lag funtion be helpful?

See: SAS(R) 9.4 Functions and CALL Routines: Reference   (lag samples - several: calculation moving average)

---->-- ja karman --<-----
Occasional Contributor
Posts: 14

Re: Extend date series in EGuide to forecast

I don't think so.  Basically I just want to tack on 12 months to the end of my time series.  I know how to calculate the moving averages.  The problem is just that when my dates end, so does my dataset and the moving averages stop calculating.  I am looking for an easy way to extend my dates into 2014 so that I can get the moving averages for those months as well.

Solution
‎07-18-2013 04:24 PM
Grand Advisor
Posts: 17,396

Re: Extend date series in EGuide to forecast

You can create the dates/data in a dataset and then append them, and then calculate your moving averages.

Does that make sense to you?

If so, provide a sample of what your data looks like, what you expect as output and someone can help with the coding or instructions on how to use EG to get it done.

Occasional Contributor
Posts: 14

Re: Extend date series in EGuide to forecast

The append is what I needed.  Thank you, Reeza.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 261 views
  • 0 likes
  • 3 in conversation