<?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: PROC ARIMA with Input Variable in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/779362#M4284</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That seems a very weird result to me (and a very bad fit).&lt;/P&gt;
&lt;P&gt;Are you sure you are specifying the exact same model as given by Visual Forecasting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the syntax in your input= may be wrong.&lt;/P&gt;
&lt;P&gt;You specify Graduate_Count for the numerator and again for the denominator of the transfer function.&lt;/P&gt;
&lt;P&gt;Specifying it once should be enough, like in :&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.arima.arimainputtransf" class="aa-section"&gt;
&lt;DIV id="etsug_arima005730" class="aa-section"&gt;
&lt;PRE class="xisDoc-code noProcess"&gt;&lt;CODE class="language-sas"&gt;&lt;SPAN class="noProcess"&gt;input=(1 $ (1)/(2)x)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 15:37:48 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2021-11-09T15:37:48Z</dc:date>
    <item>
      <title>PROC ARIMA with Input Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/779268#M4283</link>
      <description>&lt;P&gt;I am trying to implement a forecasting model from SAS Viya in SAS code. Below is the screenshot of the Viya model:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xliu1_1-1636432242811.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65510i232C79A95DF090EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xliu1_1-1636432242811.png" alt="xliu1_1-1636432242811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is what I put in sas code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC ARIMA DATA=AP.GR_DEG_FORECAST;
IDENTIFY VAR=Graduate_Count(1);
ESTIMATE p=1 METHOD=ML; /*forecast input series*/
IDENTIFY VAR=Doctoral_degrees(1) CROSSCORR=Graduate_Count(1) NOPRINT;
ESTIMATE NOINT INPUT=(1 $ (1)Graduate_Count/(2)Graduate_Count) METHOD=ML;
FORECAST ID=AY INTERVAL=YEAR LEAD=6 ALPHA=0.05 OUT=PREJ_DOC_DEG_FORECAST PRINTALL /* print the FORECAST computation throughout the whole data set*/; 
RUN;&lt;BR /&gt;&lt;BR /&gt;Title "Forecast: PRE#J: Doctoral Degrees Awarded Annually";&lt;BR /&gt;PROC SGPLOT DATA=PREJ_DOC_DEG_Forecast;&lt;BR /&gt;BAND Upper=u95 Lower=l95 x=AY / Legendlabel="95% Confidence Limits";&lt;BR /&gt;scatter x=AY y=Doctoral_degrees;&lt;BR /&gt;series x=AY y=forecast;&lt;BR /&gt;refline "01JAN2022"d / axis=x lineattrs=(thickness=1 color=BLUE pattern=dash);&lt;BR /&gt;RUN;&lt;BR /&gt;Title;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, I got very different results by running the sas code. And the model does not seem to catch the data series as it would in Viya. I am not sure which step of the code is wrong. Can anyone help me? Here is a screenshot of the forecast from sas code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xliu1_2-1636432302159.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65511iEE1586786F407B8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xliu1_2-1636432302159.png" alt="xliu1_2-1636432302159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 04:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/779268#M4283</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2021-11-09T04:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA with Input Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/779362#M4284</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That seems a very weird result to me (and a very bad fit).&lt;/P&gt;
&lt;P&gt;Are you sure you are specifying the exact same model as given by Visual Forecasting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the syntax in your input= may be wrong.&lt;/P&gt;
&lt;P&gt;You specify Graduate_Count for the numerator and again for the denominator of the transfer function.&lt;/P&gt;
&lt;P&gt;Specifying it once should be enough, like in :&lt;/P&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="etsug.arima.arimainputtransf" class="aa-section"&gt;
&lt;DIV id="etsug_arima005730" class="aa-section"&gt;
&lt;PRE class="xisDoc-code noProcess"&gt;&lt;CODE class="language-sas"&gt;&lt;SPAN class="noProcess"&gt;input=(1 $ (1)/(2)x)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 15:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/779362#M4284</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-09T15:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA with Input Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/779376#M4285</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;Thanks for your response! I also realized that typo, and removed Graduate_Count from the numerator. However, I still get very strange results. I am learning forecasting with input variables, and Viya model can help me better understand how to set up parameters. Here is the graph I get from running the sas code. I am not sure which part of the code does not match with Viya model or if the Viya forecasting uses different calculation methods?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC ARIMA DATA=AP.GR_DEG_FORECAST;
IDENTIFY VAR=Graduate_Count(1);
ESTIMATE p=1 METHOD=ML; /*forecast input series*/
IDENTIFY VAR=Doctoral_degrees(1) CROSSCORR=Graduate_Count(1) NOPRINT;
ESTIMATE NOINT INPUT=(1 $ (1)/(2)Graduate_Count) METHOD=ML;
FORECAST ID=AY INTERVAL=YEAR LEAD=6 ALPHA=0.05 OUT=PREJ_DOC_DEG_FORECAST PRINTALL /* print the FORECAST computation throughout the whole data set*/; 
RUN;

/* Plot forecast for PRE#J: Doctoral Degrees Awarded Annually */
Title "Forecast: PRE#J: Doctoral Degrees Awarded Annually";
PROC SGPLOT DATA=PREJ_DOC_DEG_Forecast;
BAND Upper=u95 Lower=l95 x=AY / Legendlabel="95% Confidence Limits";
scatter x=AY y=Doctoral_degrees;
series x=AY y=forecast;
refline "01JAN2022"d / axis=x lineattrs=(thickness=1 color=BLUE pattern=dash);
RUN;
Title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xliu1_0-1636476127557.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65528iA87559465A5A9D22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xliu1_0-1636476127557.png" alt="xliu1_0-1636476127557.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 16:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/779376#M4285</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2021-11-09T16:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA with Input Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780150#M4289</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/317497"&gt;@xliu1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what you mean with "VIYA Forecasting".&lt;/P&gt;
&lt;P&gt;Are you talking about Visual Forecasting in Model Studio?&lt;/P&gt;
&lt;P&gt;Or are you talking about SAS Tasks in SAS Studio V?&lt;/P&gt;
&lt;P&gt;Or are you talking about SAS snippets in SAS Studio V?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you use Visual Forecasting (VF).&lt;BR /&gt;VF uses PROC TSMODEL to do the forecasting.&lt;BR /&gt;Have a look at the generated TSMODEL code to exactly know which model was fit. Right-Mouse-Button (RMB) click on Forecasting node and then select View code (bottom option).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also : which version of SAS VIYA are you using?&lt;BR /&gt;Submit :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%PUT &amp;amp;=sysvlong4;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to find out (see log-screen).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 19:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780150#M4289</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-14T19:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA with Input Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780155#M4290</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;. I am using the Forecasting template under SAS Visual Analytics - Explore and Visualize Data. I try to right click the mouse button within the Forecasting template, and did not see any option for viewing code. The model algorithm is displayed when I maximize the forecasting template. But when I implement the same algorithm in SAS base, I see the calculation is different as it is shown in the base output graph. Is the algorithm implemented in SAS base different from it is in Visual Analytics? Here is what I found out about version&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xliu1_0-1636924341032.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65673i896597452AFE1C0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xliu1_0-1636924341032.png" alt="xliu1_0-1636924341032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 21:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780155#M4290</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2021-11-14T21:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA with Input Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780614#M4291</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/317497"&gt;@xliu1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked at :&lt;BR /&gt;Forecasting is a Snap in SAS Visual Analytics 8.2 on SAS Viya 3.3&lt;BR /&gt;Posted 04-25-2018 09:42 PM | by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14520"&gt;@BethEbersole&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Forecasting-is-a-Snap-in-SAS-Visual-Analytics-8-2-on-SAS-Viya-3/ta-p/457167" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Forecasting-is-a-Snap-in-SAS-Visual-Analytics-8-2-on-SAS-Viya-3/ta-p/457167&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;... and I do not think you can see the forecasting-code used in the back-end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will not be PROC ARIMA. I am sure about that! It will rather be the HPF-procedures from Forecast Server (HPF = High-Performance Forecasting) or PROC TSMODEL as used in Visual Forecasting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But anyway, it's not because PROC ARIMA was not used that you are not able to reproduce the forecasts in PROC ARIMA of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try a different estimation method (&lt;SPAN style="font-weight: bold; font-family: inherit;"&gt;METHOD=CLS | ML | ULS&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;, but that should not make a super-big difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don not see the "error" in your PROC ARIMA at this moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 23:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780614#M4291</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-16T23:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA with Input Variable</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780769#M4292</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;for your post. It helps me better understand forecasting done in SAS Visual &amp;amp; Analytics.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 16:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-with-Input-Variable/m-p/780769#M4292</guid>
      <dc:creator>xliu1</dc:creator>
      <dc:date>2021-11-17T16:10:53Z</dc:date>
    </item>
  </channel>
</rss>

