<?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 ARIMA - Statistics of Fit Question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ARIMA-Statistics-of-Fit-Question/m-p/275978#M58601</link>
    <description>&lt;P&gt;Hello, I am new to using ARIMA statistics in SAS. I am using SAS 9.4. I also have access to SAS Enterprise Guide 6.1 I need help reproducing this output. I am not sure what code was used exactly. I am analysing ARIMA models to find the best model for this particular dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data file (lets call it "a") is a list of 70 years and numbers for each year. Ex:&lt;BR /&gt;year number&lt;BR /&gt;1991 51&lt;BR /&gt;1992 64&lt;BR /&gt;1993 74&lt;BR /&gt;1994 41&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of the part of the code that I have so far:&lt;/P&gt;&lt;P&gt;proc arima data = a;&lt;BR /&gt;identify var=number;&lt;BR /&gt;estimate p=2 q=1;&lt;BR /&gt;forecast lead=0 printall;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;This produces an ARMA(2,1) model and various statistics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, here is the output I would like to replicate:&lt;BR /&gt;&lt;A href="http://puu.sh/pkShA/e3a962fc9f.png" target="_blank"&gt;http://puu.sh/pkShA/e3a962fc9f.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://puu.sh/pkSiP/ce9e377275.png" target="_blank"&gt;http://puu.sh/pkSiP/ce9e377275.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the exact code or required steps I would need to replicate these statistics of fit variables exactly as shown here for each particular ARIMA model? I have tried outstat= and outest= but they do not provide all these variables.&lt;BR /&gt;Thanks in advance for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 14:35:20 GMT</pubDate>
    <dc:creator>Statistics12</dc:creator>
    <dc:date>2016-06-08T14:35:20Z</dc:date>
    <item>
      <title>ARIMA - Statistics of Fit Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ARIMA-Statistics-of-Fit-Question/m-p/275978#M58601</link>
      <description>&lt;P&gt;Hello, I am new to using ARIMA statistics in SAS. I am using SAS 9.4. I also have access to SAS Enterprise Guide 6.1 I need help reproducing this output. I am not sure what code was used exactly. I am analysing ARIMA models to find the best model for this particular dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data file (lets call it "a") is a list of 70 years and numbers for each year. Ex:&lt;BR /&gt;year number&lt;BR /&gt;1991 51&lt;BR /&gt;1992 64&lt;BR /&gt;1993 74&lt;BR /&gt;1994 41&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of the part of the code that I have so far:&lt;/P&gt;&lt;P&gt;proc arima data = a;&lt;BR /&gt;identify var=number;&lt;BR /&gt;estimate p=2 q=1;&lt;BR /&gt;forecast lead=0 printall;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;This produces an ARMA(2,1) model and various statistics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, here is the output I would like to replicate:&lt;BR /&gt;&lt;A href="http://puu.sh/pkShA/e3a962fc9f.png" target="_blank"&gt;http://puu.sh/pkShA/e3a962fc9f.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://puu.sh/pkSiP/ce9e377275.png" target="_blank"&gt;http://puu.sh/pkSiP/ce9e377275.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the exact code or required steps I would need to replicate these statistics of fit variables exactly as shown here for each particular ARIMA model? I have tried outstat= and outest= but they do not provide all these variables.&lt;BR /&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 14:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ARIMA-Statistics-of-Fit-Question/m-p/275978#M58601</guid>
      <dc:creator>Statistics12</dc:creator>
      <dc:date>2016-06-08T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: ARIMA - Statistics of Fit Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ARIMA-Statistics-of-Fit-Question/m-p/286351#M59495</link>
      <description>&lt;P&gt;You are right. Some of these statistics are not provided by PROC ARIMA out of the box.&lt;/P&gt;
&lt;P&gt;You will need to combine the available outputs to calculate those.&lt;/P&gt;
&lt;P&gt;Some will be easy: ARSQ can be calculated from&amp;nbsp;&lt;SPAN&gt;k,&lt;/SPAN&gt;n,R2 (&lt;SPAN&gt;NPARMS&lt;/SPAN&gt;,&lt;SPAN&gt;NUMRESID,SSE - from OUTSTAT=, &amp;nbsp; SST -from the output of IDENTIFY statement)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For some you will need to use the OUT= data set. For example MAXERR needs the RESIDUAL variable in OUT=.&lt;/P&gt;
&lt;P&gt;And probably the most interesting one: RWRSQ - you will need to fit a RandomWalk model, and use its results in the calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could check other SAS/ETS procedures, maybe some can fit the same (or similar) model, but provide the statistics you need.&lt;/P&gt;
&lt;P&gt;PROC UCM, PROC VARMAX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some formulas:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_details40.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_details40.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 10:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ARIMA-Statistics-of-Fit-Question/m-p/286351#M59495</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2016-07-22T10:33:28Z</dc:date>
    </item>
  </channel>
</rss>

