<?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: Given simple returns, how do I generate acf and pacf for for 24 lags? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540391#M7222</link>
    <description>&lt;P&gt;hi, thanks for your reply. what are the statements that I need to write down please? I'm quite new to SAS so i'm not even sure how i should write the identify statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if i have the below, what needs to be changed to output acf and pacf?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data crsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;infile "\\C\\test.txt"&lt;/P&gt;&lt;P&gt;input date dec1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc arima data=crsp;&lt;/P&gt;&lt;P&gt;identify var=dec1 nlag=24 stationarity=(adf);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 10:23:54 GMT</pubDate>
    <dc:creator>lina1583</dc:creator>
    <dc:date>2019-03-05T10:23:54Z</dc:date>
    <item>
      <title>Given simple returns, how do I generate acf and pacf for for 24 lags?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540320#M7208</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm very new to SAS but have programming experience with java. just wondering if anyone has an example code snippet that reads simple return from a file and compute the acf and pacf for 24 lags? thank you for your help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data will be in this format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r&lt;/P&gt;&lt;P&gt;19700130&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.05&lt;/P&gt;&lt;P&gt;19700227&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.06&lt;/P&gt;&lt;P&gt;19700331&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.03&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 04:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540320#M7208</guid>
      <dc:creator>lina1583</dc:creator>
      <dc:date>2019-03-05T04:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Given simple returns, how do I generate acf and pacf for for 24 lags?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540329#M7209</link>
      <description>&lt;P&gt;The identify statement in &lt;STRONG&gt;proc arima&lt;/STRONG&gt; produces acf and pacf estimates. Proc arima is part of SAS/ETS.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 05:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540329#M7209</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-03-05T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Given simple returns, how do I generate acf and pacf for for 24 lags?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540391#M7222</link>
      <description>&lt;P&gt;hi, thanks for your reply. what are the statements that I need to write down please? I'm quite new to SAS so i'm not even sure how i should write the identify statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if i have the below, what needs to be changed to output acf and pacf?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data crsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;infile "\\C\\test.txt"&lt;/P&gt;&lt;P&gt;input date dec1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc arima data=crsp;&lt;/P&gt;&lt;P&gt;identify var=dec1 nlag=24 stationarity=(adf);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 10:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540391#M7222</guid>
      <dc:creator>lina1583</dc:creator>
      <dc:date>2019-03-05T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Given simple returns, how do I generate acf and pacf for for 24 lags?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540587#M7236</link>
      <description>&lt;P&gt;See introductory example in the proc ARIMA documentation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_gettingstarted02.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_gettingstarted02.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 21:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/540587#M7236</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-03-05T21:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Given simple returns, how do I generate acf and pacf for for 24 lags?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/541297#M7341</link>
      <description>&lt;P&gt;thanks, i can see the acf and pacf's graph are there but I need a table which has all the numbers for ACF and PACF like below. how do I do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and how do I run Ljung-box test to test my hypothesis that first 12 lags ACF is 0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lag&amp;nbsp; &amp;nbsp;acf&amp;nbsp; &amp;nbsp; pacf&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.2&amp;nbsp; &amp;nbsp; &amp;nbsp;0.2&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.1&amp;nbsp; &amp;nbsp; &amp;nbsp;0.1&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.05&amp;nbsp; &amp;nbsp; 0.05&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;24&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 05:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/541297#M7341</guid>
      <dc:creator>lina1583</dc:creator>
      <dc:date>2019-03-08T05:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Given simple returns, how do I generate acf and pacf for for 24 lags?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/541304#M7342</link>
      <description>&lt;P&gt;To get the graph data you will need to use ods output statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS OUTPUT AutoCorrGraph=myACFdata PACFgraph=myPACFdata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be getting the Ljung-box statistic in a table out of the identify statement output. Specify whitenoise=ignoremiss if your data contains missing values.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 06:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Given-simple-returns-how-do-I-generate-acf-and-pacf-for-for-24/m-p/541304#M7342</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-03-08T06:16:31Z</dc:date>
    </item>
  </channel>
</rss>

