BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Shawn08
Obsidian | Level 7

I have a dataset from March 2006 to January 2018.

 

Using proc timeseries, I am trying to identify the trend from a time series dataset.

 

ods graphics on;
proc timeseries data = all_posters_ext plots = (series corr decomp) outdecomp = all_posters_ext_trend;
	id date interval = month accumulate = avg;
	var nbr_poster;
	decomp ORIG TCC / lambda = 10000;
run;

 

However, the TCC variable given by that code give empty observations from March 2006 to August 2006 and from August 2017 to January 2018.

 

Is it possible to expand the TCC to cover the whole time period analyzed (March 2006 to January 2018)?

 

Thank you in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
mitrov
SAS Employee

The moving averages are centered around the observations. So there will be some missing values at the beginning and end. You can find the formulas here (look at the end of the page)

http://go.documentation.sas.com/?docsetId=etsug&docsetTarget=etsug_timeseries_details07.htm&docsetVe...

 

However, the window of data that is missing the TCC component at the end is too wide for your data. That's why I was suggesting to check if there are missing values. 

 

If you want estimates for the TC component for all the range of the data, and into the future, I suggest you look at models to forecast it. For example PROC ESM and PROC UCM, or PROC X12 and X13. 

 

View solution in original post

3 REPLIES 3
mitrov
SAS Employee

The TCC(trend-cycle) component is a moving average of the data. How do your data look in those periods? Any missing values?

 

Shawn08
Obsidian | Level 7

There are no missing values.

 

I understand that the beginning of the period might cause problems as moving average need historical data. However, no results are also given for the end of the timeline.

mitrov
SAS Employee

The moving averages are centered around the observations. So there will be some missing values at the beginning and end. You can find the formulas here (look at the end of the page)

http://go.documentation.sas.com/?docsetId=etsug&docsetTarget=etsug_timeseries_details07.htm&docsetVe...

 

However, the window of data that is missing the TCC component at the end is too wide for your data. That's why I was suggesting to check if there are missing values. 

 

If you want estimates for the TC component for all the range of the data, and into the future, I suggest you look at models to forecast it. For example PROC ESM and PROC UCM, or PROC X12 and X13. 

 

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