BookmarkSubscribeRSS Feed
viollete
Calcite | Level 5

I have a data in such format:

 

Date total_nr

 

Jan2010  15

Feb2010 25

Mar2010 30

....

 

And I want to do seasonal adjustment and just to draw graph with raw data+seasonal adjusted.

 

However, When my total_nr is less than 100, i have some issues with data variable: "Unable to detremine the interval of Time ID variable" or "Time ID variable contains gaps".

 

all my data have all months and there is no missing data. everything works when total_nr value is bigger.

 

Can someone help or explain what is wrong?

 

Thank you 

3 REPLIES 3
Oligolas
Barite | Level 11

For which records are you producing errors?

Are you trying to create a date with invalid values like 30FEB2010 or something?

 

Do you have some sample code please?

________________________

- Cheers -

viollete
Calcite | Level 5

My date variable is in this format monyy7. and the outcome in total_nr represent number or admissions per month.

 

the code i used is this:

 

proc x12 data=adm date=date;

var total_nr;

x11;

output out=adm_seas a1 d10 d11 d12 d13;

run;

 

when i just plot original series vs seasonal adjusted (this is what i want)

 

proc sgplot data=adm_seas;

series x=date y=total_nr_a1;

series x=date y=total_nr_d11;

run;

 

However, then i have small numbers of admissions per month (around 40 to 100 per month), proc x12 does not run.

Oligolas
Barite | Level 11

Hi Viollete,

 

This could be data driven, if you have a large increase of seasonal factors from year to year, check this "identifiable seasonality"

Contact the SAS support, they may be able to confirm why SAS is not running the adjustment when var<100. Unfortunately I can not test by myself.

________________________

- Cheers -

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1113 views
  • 0 likes
  • 2 in conversation