BookmarkSubscribeRSS Feed
MedSAS
Calcite | Level 5

Hello,

 

I want to calculate a seasonnal coefficients of the attached series.

 

Thank you very much for your help !  

 

This is my PGM ( i don't understand of these procedures) : 


Data WORK.Donnees ;
%Let _EFIERR_ = 0;
Infile "C:\Users\Desktop\test2.csv" Delimiter = ';' MISSOVER Lrecl=32767 Firstobs=2 ;
Informat annee best32. ;
Informat trimestre best32. ;
Informat Date yyQ7. ;
Informat Var numx5.1 ;
Format Date yyQ7. ;
Input Annee Trimestre Date VAR;
If _ERROR_ then call symputx('_EFIERR_',1);
Run;

Proc means data = donnees;
Class annee;
Var Var;
Run;

Proc means data = donnees;
Class trimestre;
Var Var;
Run;

Proc x12 data=donnees date=date;
var Var;
x11;
ods select d1 d10d d11 d12 d13;;
Run;

Proc timeseries data=donnees plot=series;
id date interval=quarter;
var Var;
Run;

Proc timeseries data=donnees outseason=season
plots=(series TC SC IC SA);
id date interval=quarter;
var Var;
decomp ORIG TC SC IC SA/mode=MULTORADD;
Run;

title1 "Seasonal Statistics";
Proc sgplot data=season;
series x=_season_ y=max / lineattrs=(pattern=solid);
series x=_season_ y=mean / lineattrs=(pattern=solid);
series x=_season_ y=min / lineattrs=(pattern=solid);
yaxis display=(nolabel);
xaxis values=(1 to 4 by 1);
Run;

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 343 views
  • 0 likes
  • 1 in conversation