<?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: Time series cross correlation with lag in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119018#M1010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for an answer in SAS JMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless I am doing somewhing wrong the Time Series lag correlation is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested Minitab, where it is working as it should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 14:53:35 GMT</pubDate>
    <dc:creator>Peder</dc:creator>
    <dc:date>2013-10-25T14:53:35Z</dc:date>
    <item>
      <title>Time series cross correlation with lag</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119016#M1008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I want to check if some temperature data that I have are correlated, and I suspect there is a time-dependent lag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the time-series analysis using cross correlation, but either I don't understand how to do it or something is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I tested with the following data columns, where there should be full correlation for a lag of 7 rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A+7&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I got just doesn't make sense. There should be some way to see a full correlation of the data for a lag of 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="lag7.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4412_lag7.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 19:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119016#M1008</guid>
      <dc:creator>Peder</dc:creator>
      <dc:date>2013-10-21T19:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time series cross correlation with lag</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119017#M1009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I received a response from one of my R&amp;amp;D colleagues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;EM 13.1 includes the cross-correlation analysis in TS Correlation node.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;However, EM users can do&amp;nbsp;&amp;nbsp; cross correlation analysis using proc timeseries if they have ETS license.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;The following pseudo code will calculate cross-correlation between t1&amp;nbsp; and t2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;proc timeseries data=yourdata&amp;nbsp;&amp;nbsp; outcrosscorr=_out ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;id&amp;nbsp; MNTH_YR interval=MONTH accumulate=TOTAL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;var&amp;nbsp; t1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;crosscorr CCF CCFNORM lag n / nlag=24 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;crossvar&amp;nbsp; t2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119017#M1009</guid>
      <dc:creator>jwexler</dc:creator>
      <dc:date>2013-10-23T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Time series cross correlation with lag</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119018#M1010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for an answer in SAS JMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless I am doing somewhing wrong the Time Series lag correlation is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested Minitab, where it is working as it should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 14:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119018#M1010</guid>
      <dc:creator>Peder</dc:creator>
      <dc:date>2013-10-25T14:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time series cross correlation with lag</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119019#M1011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Your welecome.&amp;nbsp; I would recommend the JMP Coomunity &lt;/SPAN&gt;&lt;A class="jive-link-community-small" data-containerid="2007" data-containertype="14" data-objectid="43" data-objecttype="14" href="https://communities.sas.com/community/support-communities/jmp_software"&gt;https://communities.sas.com/community/support-communities/jmp_software&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, try filing a Tech Support track at support.sas.com.&amp;nbsp; They can look at your code and walk you through any remediation steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 17:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Time-series-cross-correlation-with-lag/m-p/119019#M1011</guid>
      <dc:creator>jwexler</dc:creator>
      <dc:date>2013-10-25T17:33:23Z</dc:date>
    </item>
  </channel>
</rss>

