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

Hi everybody!

My ARIMA model has both seasonal and nonseasonal factors (p,d,q)(P,D,Q)s 

and model has following parameters (2,1,1)(1,0,1)12 

Has anybody know how will code looks like?

1 ACCEPTED SOLUTION

Accepted Solutions
mitrov
SAS Employee

Hi, the code is very easy to generate with the point-and-click interface provided by the Forecasting Tasks in SAS Studio. See my signature for more information.

 

/*
 *
 * Task code generated by SAS Studio 3.6 
 *
  *
 */


ods noproctitle;
ods graphics / imagemap=on;

proc sort data=SASHELP.AIR out=Work.preProcessedData;
	by DATE;
run;

proc arima data=Work.preProcessedData plots
    (only)=(series(corr crosscorr) residual(corr normal) 
		forecast(forecastonly));
	identify var=AIR(1);
	estimate p=(1 2) (12) q=(1) (12) method=ML;
	forecast lead=12 back=0 alpha=0.05 id=DATE interval=month;
	outlier;
	run;
quit;

proc delete data=Work.preProcessedData;
run;

View solution in original post

1 REPLY 1
mitrov
SAS Employee

Hi, the code is very easy to generate with the point-and-click interface provided by the Forecasting Tasks in SAS Studio. See my signature for more information.

 

/*
 *
 * Task code generated by SAS Studio 3.6 
 *
  *
 */


ods noproctitle;
ods graphics / imagemap=on;

proc sort data=SASHELP.AIR out=Work.preProcessedData;
	by DATE;
run;

proc arima data=Work.preProcessedData plots
    (only)=(series(corr crosscorr) residual(corr normal) 
		forecast(forecastonly));
	identify var=AIR(1);
	estimate p=(1 2) (12) q=(1) (12) method=ML;
	forecast lead=12 back=0 alpha=0.05 id=DATE interval=month;
	outlier;
	run;
quit;

proc delete data=Work.preProcessedData;
run;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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
  • 1 reply
  • 761 views
  • 0 likes
  • 2 in conversation