BookmarkSubscribeRSS Feed
KHayes
Calcite | Level 5

Hi, I'm trying cross-correlate 2 time series variables to estimate their correlations and determine the time lag between the variables. Both variables are adjusted using ARIMA models MA(1,1) and ARIMA (1,1,1).

 

When I run the code below, I don't get any errors in my log but the table produced in the results tab has WARNING in the STATUS column or sometimes is has 0 Converged in the STATUS column.  

 

I've read about using OUTCORR and OUTEST but I'm not sure what the difference is between the two or where to place in the ESTIMATE line. Or maybe the problem comes in when I enter the ARIMA models in the code...??? 

 

Any help is much appreciated. Great if you can share an example code! 

 

My code is :

 

proc arima data = dataset1.pceaus;
identify var = dpcecap;
estimate q=1 p=1 outcorr outest=dataset1.pceaus5;
identify var=dhale q=1 crosscorr= dpcecap;
run;
proc print data=dataset1.pceaus5;

run;

5 REPLIES 5
JOL
SAS Employee JOL
SAS Employee
Try reposting under menu: Analytics - Statistical Procedures
KHayes
Calcite | Level 5

Hi, I'm trying cross-correlate 2 time series variables to estimate their correlations and determine the time lag between the variables. Both variables are adjusted using ARIMA models MA(1,1) and ARIMA (1,1,1).

 

When I run the code below, I don't get any errors in my log but the table produced in the results tab has WARNING in the STATUS column or sometimes is has 0 Converged in the STATUS column.  

 

I've read about using OUTCORR and OUTEST but I'm not sure what the difference is between the two or where to place in the ESTIMATE line. Or maybe the problem comes in when I enter the ARIMA models in the code...??? 

 

Any help is much appreciated. Great if you can share an example code! 

 

My code is :

 

proc arima data = dataset1.pceaus;
identify var = dpcecap;
estimate q=1 p=1 outcorr outest=dataset1.pceaus5;
identify var=dhale q=1 crosscorr= dpcecap;
run;
proc print data=dataset1.pceaus5;

run;

KHayes
Calcite | Level 5

@Kurt_Bremser thanks so much for your response. Could you expand on what you mean by merging and moving everything? I'm a novice to SAS and appreciate your help!

 

Thanks!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 5 replies
  • 606 views
  • 1 like
  • 3 in conversation