<?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 F/cast with Impulse Intervention: &amp;quot;Warning: More values of input variable &amp;lt;&amp;amp;a in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-F-cast-with-Impulse-Intervention-quot-Warning-More/m-p/560639#M3558</link>
    <description>&lt;P&gt;Hi DW,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That helps immensely; thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 20:09:03 GMT</pubDate>
    <dc:creator>Climacus</dc:creator>
    <dc:date>2019-05-21T20:09:03Z</dc:date>
    <item>
      <title>PROC ARIMA F/cast with Impulse Intervention: "Warning: More values of input variable &lt;&gt; are needed."</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-F-cast-with-Impulse-Intervention-quot-Warning-More/m-p/560421#M3553</link>
      <description>&lt;P&gt;Good evening all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning SAS as part of my Masters course.&amp;nbsp; I am guessing I may be trying to do something very stupid -- Econometrics is new to me, as well as SAS.&amp;nbsp; I may just need someone to tell me.&amp;nbsp; I tried searching but could not find anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated an ARMA(1,1) model (after running PROC ARIMA IDENTIFY with MINIC to work out the best option) with some data we were given for returns on the NY stock exchange.&amp;nbsp; I realise stock returns will never be perfect, and the data we have includes&amp;nbsp;a bit of a crash in 2009, but anyway...&amp;nbsp; I wanted to try and improve on the model.&amp;nbsp; I don't see any lags that would indicate a yearly, or quarterly, lag option I should put in.&amp;nbsp; What I thought of doing was using &lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_arima_sect013.htm" target="_self"&gt;an impulse intervention&amp;nbsp;&lt;/A&gt;to handle the 2009 drop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA TRAINING_ARIMA;
SET TRAINING;
    Drop2009= (date &amp;gt;= '19FEB2009'd and date &amp;lt;= '05MAR2009'd);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, whenever I try and forecast [I have 196 obs in my training set; 22 remaining in my test set]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC ARIMA DATA=TRAINING_ARIMA;
    IDENTIFY VAR=NYSE CROSSCORR=(Drop2009);
    ESTIMATE P=(1) Q=(1) INPUT=(Drop2009);
    FORECAST OUT=FORECAST_ARIMA LEAD=22;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the warning message:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P class="warncontent"&gt;&lt;SPAN class="warncontent"&gt;Warning:&amp;nbsp;More&amp;nbsp;values&amp;nbsp;of&amp;nbsp;input&amp;nbsp;variable&amp;nbsp;Drop2009&amp;nbsp;are&amp;nbsp;needed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="proctitle"&gt;&lt;SPAN class="proctitle"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The&amp;nbsp;value&amp;nbsp;for&amp;nbsp;option&amp;nbsp;LEAD=&amp;nbsp;has&amp;nbsp;been&amp;nbsp;reduced&amp;nbsp;to&amp;nbsp;0.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="proctitle"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="proctitle"&gt;&lt;SPAN class="proctitle"&gt;and thus no forecasts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="proctitle"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="proctitle"&gt;&lt;SPAN class="proctitle"&gt;Is this because I do not have enough "1" values for the&amp;nbsp;&lt;SPAN class="warncontent"&gt;&lt;EM&gt;Drop2009&lt;/EM&gt; column in my dataset (3 out of 196 currently as above; data is weekly)?&amp;nbsp; Or am I missing some option in my code I need?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="proctitle"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time,&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 09:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-F-cast-with-Impulse-Intervention-quot-Warning-More/m-p/560421#M3553</guid>
      <dc:creator>Climacus</dc:creator>
      <dc:date>2019-05-21T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA F/cast with Impulse Intervention: "Warning: More values of input variable &lt;&amp;g</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-F-cast-with-Impulse-Intervention-quot-Warning-More/m-p/560613#M3557</link>
      <description>&lt;P&gt;Hi Ian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To forecast a model with input variables in PROC ARIMA, future values of those input variables&amp;nbsp;need to be provided for the forecast horizon defined by the LEAD= option.&amp;nbsp; The following section of the PROC ARIMA documentation provides some information on this topic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_gettingstarted40.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_arima_gettingstarted40.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your input variable is an intervention variable, future values of your Drop2009&amp;nbsp;variable need to be provided as part of your DATA= data set for the LEAD= horizon.&amp;nbsp; Based on your description, you have a weekly&amp;nbsp;data set with 218 observations that has been broken up into a Training data set with 196 observations and a Test data set with 22 observations.&amp;nbsp; It appears the weekly dates are recorded on Thursday for each week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than breaking&amp;nbsp;up the&amp;nbsp;original data set into 2 data sets,&amp;nbsp;you can use&amp;nbsp;a modified version of your original data set, where your dependent variable, NYSE, is set to missing for the last 22 observations, and the Drop2009 variable is added.&amp;nbsp; For example, assume your original data set is called ALL_DATA&amp;nbsp;and the first observation in your "Test" data set&amp;nbsp;starts in the first week of October 2012.&amp;nbsp; You can do something like the following to fit your model and obtain forecasts:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data model_data;
  set all_data;
  if date &amp;gt; '30sep2012'd then nyse=.; /* specify date for beginning of forecast period */
  drop2009 = ('19feb2009'd &amp;lt;= date &amp;lt;= '05mar2009'd);
run;

proc arima data=model_data;
  identify var=nyse crosscorr=(drop2009) noprint;
  estimate p=(1) q=(1) input=(drop2009);
  forecast out=forecast_arima lead=22 id=date interval=week.5;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that the ID=DATE and INTERVAL=WEEK.5 options were added&amp;nbsp;to the FORECAST statement to include extrapolated values of the DATE variable&amp;nbsp;in the OUT=&amp;nbsp;data set.&amp;nbsp; The INTERVAL= specification assumes weekly data aligned to the Thursday of each week.&amp;nbsp; If&amp;nbsp;this assumption is not correct, then you can change the INTERVAL= specification accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;DW&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 18:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-F-cast-with-Impulse-Intervention-quot-Warning-More/m-p/560613#M3557</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2019-05-21T18:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA F/cast with Impulse Intervention: "Warning: More values of input variable &lt;&amp;a</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-F-cast-with-Impulse-Intervention-quot-Warning-More/m-p/560639#M3558</link>
      <description>&lt;P&gt;Hi DW,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That helps immensely; thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ian.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 20:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-ARIMA-F-cast-with-Impulse-Intervention-quot-Warning-More/m-p/560639#M3558</guid>
      <dc:creator>Climacus</dc:creator>
      <dc:date>2019-05-21T20:09:03Z</dc:date>
    </item>
  </channel>
</rss>

