<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cross-Correlation Code to Determine Time Lag and Correlation in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752369#M36597</link>
    <description>Try reposting under menu:  Analytics - Statistical Procedures</description>
    <pubDate>Tue, 06 Jul 2021 17:49:32 GMT</pubDate>
    <dc:creator>JOL</dc:creator>
    <dc:date>2021-07-06T17:49:32Z</dc:date>
    <item>
      <title>Cross-Correlation Code to Determine Time Lag and Correlation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752193#M36596</link>
      <description>&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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...???&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated. Great if you can share an example code!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;proc arima data = dataset1.pceaus;&lt;/DIV&gt;&lt;DIV&gt;identify var = dpcecap;&lt;/DIV&gt;&lt;DIV&gt;estimate q=1 p=1 outcorr outest=dataset1.pceaus5;&lt;/DIV&gt;&lt;DIV&gt;identify var=dhale q=1 crosscorr= dpcecap;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc print data=dataset1.pceaus5;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 03:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752193#M36596</guid>
      <dc:creator>KHayes</dc:creator>
      <dc:date>2021-07-06T03:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cross-Correlation Code to Determine Time Lag and Correlation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752369#M36597</link>
      <description>Try reposting under menu:  Analytics - Statistical Procedures</description>
      <pubDate>Tue, 06 Jul 2021 17:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752369#M36597</guid>
      <dc:creator>JOL</dc:creator>
      <dc:date>2021-07-06T17:49:32Z</dc:date>
    </item>
    <item>
      <title>Cross Correlation to determine time lag and correlation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752370#M36598</link>
      <description>&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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...???&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated. Great if you can share an example code!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;proc arima data = dataset1.pceaus;&lt;/DIV&gt;&lt;DIV&gt;identify var = dpcecap;&lt;/DIV&gt;&lt;DIV&gt;estimate q=1 p=1 outcorr outest=dataset1.pceaus5;&lt;/DIV&gt;&lt;DIV&gt;identify var=dhale q=1 crosscorr= dpcecap;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc print data=dataset1.pceaus5;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 17:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752370#M36598</guid>
      <dc:creator>KHayes</dc:creator>
      <dc:date>2021-07-06T17:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cross-Correlation Code to Determine Time Lag and Correlation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752391#M36599</link>
      <description>&lt;P&gt;I merged and moved everything.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 19:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/752391#M36599</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-06T19:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cross-Correlation Code to Determine Time Lag and Correlation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/753363#M36647</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;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!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 19:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/753363#M36647</guid>
      <dc:creator>KHayes</dc:creator>
      <dc:date>2021-07-10T19:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cross-Correlation Code to Determine Time Lag and Correlation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/753366#M36648</link>
      <description>&lt;P&gt;It means I merged your posts into one and moved this to the Statistical Procedures community.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 21:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cross-Correlation-Code-to-Determine-Time-Lag-and-Correlation/m-p/753366#M36648</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-10T21:36:17Z</dc:date>
    </item>
  </channel>
</rss>

