<?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: How to write proc arima code when diffferencing? in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811324#M4429</link>
    <description>&lt;P&gt;Here is what I came up with. I can get the residual acf and pacf in first run of proc arima but I don't know how to output table ChiSqAuto. It is not working for me. Perhaps it is the ods exclude statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods exclude optSummary IACFgraph SeriesIACFplot ResidualIACFPLot;&lt;BR /&gt;proc arima data=ultraShine plots(unpack)=series(acf pacf corr) &lt;BR /&gt;                           plots=residual(acf pacf);&lt;BR /&gt;identify var=y(1) nlag=88 outcov=mycorr;&lt;BR /&gt;estimate p=1 method=CLS printall;&lt;BR /&gt;outlier;&lt;BR /&gt;forecast lead=10 out=forecasts;&lt;BR /&gt;run; quit; title;&lt;BR /&gt;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;ods exclude IACFgraph;&lt;BR /&gt;proc arima data=forecasts plots(unpack)=series(acf pacf corr);&lt;BR /&gt;identify var=residual nlag=24 outcov=mycorr_residual;&lt;BR /&gt;run; quit; title;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Now I am following textbook output. Thanks for stepping in.&amp;nbsp; MM&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 21:35:00 GMT</pubDate>
    <dc:creator>MMarion</dc:creator>
    <dc:date>2022-05-03T21:35:00Z</dc:date>
    <item>
      <title>How to write proc arima code when diffferencing?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811156#M4424</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with Bowerman textbook Forecasting, Time Series, and Regression -4th edition. He presents many good examples but does not include all SAS code. My question has to do with proc arima and the SAS output from Bowerman. I am not getting the ACF and PACF plots of the residuals to match. This is a two-fold problem in that SAS has changed with ods graphics and my code does not produce matching covariance and correlation values for the residuals. I would like the acf and pacf covariances and correlations to be stored so I can retrieve their values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SAS code is included below:&lt;/P&gt;&lt;PRE&gt;ods graphics on;&lt;BR /&gt;proc arima data=ultraShine plots(unpack)=series(acf pacf);&lt;BR /&gt;identify var=y(1);&lt;BR /&gt;estimate p=1 method=CLS maxit=4 printall;&lt;BR /&gt;outlier;&lt;BR /&gt;forecast lead=10 out=forecasts;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The source code, data and Bowerman results are given in the enclosed files.&lt;/P&gt;&lt;P&gt;I am using sas studio -demand edition. Can you help?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;MM&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 12:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811156#M4424</guid>
      <dc:creator>MMarion</dc:creator>
      <dc:date>2022-05-03T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write proc arima code when diffferencing?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811303#M4425</link>
      <description>&lt;P&gt;Use ODS OUTPUT statement !&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
ods trace on;
ods output SeriesACFPlot  = work.SeriesACFPlot
           SeriesPACFPlot = work.SeriesPACFPlot ;

proc arima data=sashelp.citimon plots(unpack)=series(acf pacf);
identify var=CCIUTC(1);
estimate p=1 method=CLS maxit=4 printall;
outlier;
forecast lead=10 out=forecasts;
run;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See also :&lt;/P&gt;
&lt;P&gt;Using PROC ARIMA to Model Trends in US Home Prices&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Using-PROC-ARIMA-to-Model-Trends-in-US-Home-Prices/ta-p/810674" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Using-PROC-ARIMA-to-Model-Trends-in-US-Home-Prices/ta-p/810674&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 18:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811303#M4425</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-05-03T18:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write proc arima code when diffferencing?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811307#M4426</link>
      <description>Thank you for your reply. The following code is not giving me the correct list of ACF and PACF values. Are they not in outcov = mycorr? Something is still incorrect.&lt;BR /&gt;proc arima data=ultraShine plots(unpack)=series(acf pacf corr);&lt;BR /&gt;identify var=y(1) nlag=88 outcov=mycorr;&lt;BR /&gt;estimate p=1 method=CLS printall;&lt;BR /&gt;run; quit; title;</description>
      <pubDate>Tue, 03 May 2022 19:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811307#M4426</guid>
      <dc:creator>MMarion</dc:creator>
      <dc:date>2022-05-03T19:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write proc arima code when diffferencing?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811308#M4427</link>
      <description>It is the ACF and PACF of the residuals that I want output. I am not sure where they are or whether I need say more about outcov.</description>
      <pubDate>Tue, 03 May 2022 19:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811308#M4427</guid>
      <dc:creator>MMarion</dc:creator>
      <dc:date>2022-05-03T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to write proc arima code when diffferencing?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811317#M4428</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry,&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.arima.ariidentifystmt" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DD&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;the autocovariances, autocorrelations, inverse autocorrelations, partial autocorrelations, and cross covariances are indeed in the "&lt;SPAN&gt;OUTCOV=&lt;/SPAN&gt;&lt;SPAN class=" aa-argument"&gt;SAS-data-set"&amp;nbsp;&lt;/SPAN&gt;output data set.&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;But these are&amp;nbsp;the autocovariances, autocorrelations, inverse autocorrelations, partial autocorrelations, and cross covariances of the time series variable in the IDENTIFY statement, not those of the residuals!&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.arima.arimaoutdata" class="aa-section"&gt;
&lt;P class="xisDoc-paragraph"&gt;The output data set produced by the OUT= option of the PROC ARIMA or FORECAST statements contains the&amp;nbsp;&lt;SPAN&gt;RESIDUALs (a numeric variable that contains the differences between actual and forecast values).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;Submit a new PROC ARIMA on the&amp;nbsp;&lt;SPAN&gt;RESIDUALs to get what you want.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 May 2022 20:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811317#M4428</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-05-03T20:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write proc arima code when diffferencing?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811324#M4429</link>
      <description>&lt;P&gt;Here is what I came up with. I can get the residual acf and pacf in first run of proc arima but I don't know how to output table ChiSqAuto. It is not working for me. Perhaps it is the ods exclude statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods exclude optSummary IACFgraph SeriesIACFplot ResidualIACFPLot;&lt;BR /&gt;proc arima data=ultraShine plots(unpack)=series(acf pacf corr) &lt;BR /&gt;                           plots=residual(acf pacf);&lt;BR /&gt;identify var=y(1) nlag=88 outcov=mycorr;&lt;BR /&gt;estimate p=1 method=CLS printall;&lt;BR /&gt;outlier;&lt;BR /&gt;forecast lead=10 out=forecasts;&lt;BR /&gt;run; quit; title;&lt;BR /&gt;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;ods exclude IACFgraph;&lt;BR /&gt;proc arima data=forecasts plots(unpack)=series(acf pacf corr);&lt;BR /&gt;identify var=residual nlag=24 outcov=mycorr_residual;&lt;BR /&gt;run; quit; title;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Now I am following textbook output. Thanks for stepping in.&amp;nbsp; MM&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 21:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811324#M4429</guid>
      <dc:creator>MMarion</dc:creator>
      <dc:date>2022-05-03T21:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to write proc arima code when diffferencing?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811337#M4430</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For &lt;SPAN&gt;ChiSqAuto in a table&lt;/SPAN&gt;, you need an&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS OUTPUT&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS® 9.4 and SAS® Viya® 3.5 Programming Documentation | SAS 9.4 / Viya 3.5&lt;BR /&gt;SAS/ETS User's Guide&lt;BR /&gt;The ARIMA Procedure&lt;BR /&gt;ODS Table Names&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_arima_details53.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_arima_details53.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 22:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-write-proc-arima-code-when-diffferencing/m-p/811337#M4430</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-05-03T22:23:06Z</dc:date>
    </item>
  </channel>
</rss>

