<?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: VARMAX with proc reg in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962393#M4969</link>
    <description>The "VARMAX Procedure" documentation has an explanation on this matter, as per the following paragraph:&lt;BR /&gt;&lt;BR /&gt;"In the preceding state space form of a VARMAX model, the exogenous variables are treated as determined&lt;BR /&gt;terms, which implies that the values of the exogenous variables must be provided to forecast the out-of-sample&lt;BR /&gt;dependent variables. If you do not have the future values of the exogenous variables, either you predict the&lt;BR /&gt;exogenous variables in a separate model, or you express both the exogenous variables and the dependent&lt;BR /&gt;variables in one combined model and predict them together (Reinsel 1997)."</description>
    <pubDate>Fri, 21 Mar 2025 15:09:26 GMT</pubDate>
    <dc:creator>SAS_Illyrian</dc:creator>
    <dc:date>2025-03-21T15:09:26Z</dc:date>
    <item>
      <title>VARMAX with proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/640083#M3815</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know what the difference is when inserting variables in proc reg and then forecast the residuals with VARMAX&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;inserting the significant variables from proc reg to the VARMAX modelling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In code:&lt;/P&gt;&lt;PRE&gt;Proc reg data=x printall;
dependent_variable=exogenous_variable1&amp;nbsp;exogenous_variable2 ...&amp;nbsp;exogenous_variablep
white vif tol dw dwprob selection=b slentry=0.05;
output out=xforecast Rstudent=Rstudent student=student covratio=covratio h=h predicted=pred residual=residual;

Proc varmax data=xforecast
model residual/
p=7 q=2
method=ls dftest minic=(type=aic) print=(roots);
nloptions;
garch p=1 q=1 form=ccc;&lt;BR /&gt;output out=forecast1 lead=21;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;Or with only VARMAX:&lt;/P&gt;&lt;PRE&gt;proc varmax data=xforecast printall;
dependent_variable=exogenous_variable1&amp;nbsp;exogenous_variable2 ...&amp;nbsp;exogenous_variablep/&lt;BR /&gt;p=7 q=2 method=ls dftest minic=(type=aic) print=(roots); &lt;BR /&gt;nloptions; &lt;BR /&gt;garch p=1 q=1 form=ccc;&lt;BR /&gt;output out=forecast1 lead=21;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;With only running VARMAX it is also not possible to generate a forecast which i don't understand. The error code:&lt;/P&gt;&lt;PRE&gt; WARNING: The value of LEAD=21 in OUTPUT statement. There are only 0 future independent observations. The value of LEAD will take 
          the minimum of two values.&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 12:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/640083#M3815</guid>
      <dc:creator>SAScph</dc:creator>
      <dc:date>2020-04-15T12:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: VARMAX with proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962389#M4968</link>
      <description>I'd like to get a clear answer on this too. This warning is driving me crazy. I can't find any explanations about this no the web.</description>
      <pubDate>Fri, 21 Mar 2025 14:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962389#M4968</guid>
      <dc:creator>SAS_Illyrian</dc:creator>
      <dc:date>2025-03-21T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: VARMAX with proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962393#M4969</link>
      <description>The "VARMAX Procedure" documentation has an explanation on this matter, as per the following paragraph:&lt;BR /&gt;&lt;BR /&gt;"In the preceding state space form of a VARMAX model, the exogenous variables are treated as determined&lt;BR /&gt;terms, which implies that the values of the exogenous variables must be provided to forecast the out-of-sample&lt;BR /&gt;dependent variables. If you do not have the future values of the exogenous variables, either you predict the&lt;BR /&gt;exogenous variables in a separate model, or you express both the exogenous variables and the dependent&lt;BR /&gt;variables in one combined model and predict them together (Reinsel 1997)."</description>
      <pubDate>Fri, 21 Mar 2025 15:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962393#M4969</guid>
      <dc:creator>SAS_Illyrian</dc:creator>
      <dc:date>2025-03-21T15:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: VARMAX with proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962394#M4970</link>
      <description>However, I am unclear how to achieve the above with SAS code. Let's assume you have the values of the independent variables. How do you confine the dataset to make the model within sample, and get the forecast values out of sample?</description>
      <pubDate>Fri, 21 Mar 2025 15:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962394#M4970</guid>
      <dc:creator>SAS_Illyrian</dc:creator>
      <dc:date>2025-03-21T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: VARMAX with proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962695#M4971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/331515"&gt;@SAS_Illyrian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When future values of exogenous variables are provided in the data set, PROC VARMAX computes future forecasts using those supplied values for the exogenous variables; when future values of the exogenous variables are not provided in the input data set, PROC VARMAX is expected to compute future forecasts for the exogenous variables using the same VAR/VMA/VARMA model specification(i.e., with the same p = and q = specification) for the dependent variables, then forecasts for the dependent variables are obtained using those forecasted exogenous variables for the future periods. This should be done automatically and you do not need to manually do anything additional. So the warning message you observed and that you do not get forecasts when future exogenous variables are not provided in PROC VARMAX may indicate some issues that need further investigation. Can you contact Technical Support at:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/en/technical-support.html#contact" target="_blank"&gt;https://support.sas.com/en/technical-support.html#contact&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and we will further look into this issue. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 17:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/962695#M4971</guid>
      <dc:creator>SASCom1</dc:creator>
      <dc:date>2025-03-26T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: VARMAX with proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/963505#M4976</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/331515"&gt;@SAS_Illyrian&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We did some further investigation, and our test confirmed that:&lt;/P&gt;
&lt;P&gt;(1). if you only specify P = option, and no Q = option is specified, then PROC VARMAX automatically forecasts future independent variables if they are not provided in the data set, using the same VAR model (the same order of P = option) for the dependent variables, then obtain forecast on the dependent variables using the thus forecasted independent variables for future periods ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2). if you specify Q = option(with or without P = option), then unfortunately the procedure does not automatically obtain forecasts if future independent variables are not provided in the data set, and issue the warning you observed in the log. This is a bug in the procedure and we are working on fix of this issue, so that in the future it will behave the same as when only p = is specified discussed in (1) above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the mean time, if you want future forecasts in case (2) then you may need to first forecast future independent variables yourself and save the future forecasts on the independent variables, then append the future forecasts to the end of the data. Then you can run PROC VARMAX on the appended data set to obtain future forecasts on the dependent variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 23:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/VARMAX-with-proc-reg/m-p/963505#M4976</guid>
      <dc:creator>SASCom1</dc:creator>
      <dc:date>2025-04-04T23:58:01Z</dc:date>
    </item>
  </channel>
</rss>

