<?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 UCM: do not produce prognosis (even if lead=1) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-UCM-do-not-produce-prognosis-even-if-lead-1/m-p/762506#M37230</link>
    <description>&lt;P&gt;It works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you so much, Koen!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 12:31:40 GMT</pubDate>
    <dc:creator>asolk</dc:creator>
    <dc:date>2021-08-19T12:31:40Z</dc:date>
    <item>
      <title>PROC UCM: do not produce prognosis (even if lead=1)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-UCM-do-not-produce-prognosis-even-if-lead-1/m-p/762497#M37227</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a forecast, for at least 1 month long. I see the following note in the SAS:&lt;BR /&gt;&lt;EM&gt;NOTE: Number of non-missing predictor values in the forecast horizon is less than the value in the LEAD= option of the FORECAST statement. The value in the LEAD= option is reduced to 0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, I do not have any forecast data in the output &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I use the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ucm data=all_TOTAL1;
   model all_50 = VA_all;
   id termin interval=month;
   irregular;
   level var=0 noest;
   randomreg batProgram / plot=smooth;
   season length=12 var=0 noest plot=smooth;
   estimate plot=(panel residual);
   forecast plot=forecasts lead=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I have &lt;STRONG&gt;31&lt;/STRONG&gt; non-missing variables (there is no missing in the datafile at all), data per month. &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;All_50 (dependent) is the number of sold products, &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;VA_all (predictor) is the number of days per month when the company conduct any promotion campaigns on the products.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;batProgram is used as a flag: 0 if no campaign and 1 if any campaign&amp;nbsp;during the month&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Forecast was fine before I have added a predictor variable VA_all (when I have run forecast based on the number of sold products only). But now I have these data and would like to integrate them into the analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is wrong in the code? Or data? Maybe 31 rows is quite small for this type of analysis?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 11:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-UCM-do-not-produce-prognosis-even-if-lead-1/m-p/762497#M37227</guid>
      <dc:creator>asolk</dc:creator>
      <dc:date>2021-08-19T11:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: PROC UCM: do not produce prognosis (even if lead=1)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-UCM-do-not-produce-prognosis-even-if-lead-1/m-p/762498#M37228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need future values for your independent variables!&lt;/P&gt;
&lt;P&gt;Do you have future values for your independent (=predictor) variables?&lt;/P&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>Thu, 19 Aug 2021 11:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-UCM-do-not-produce-prognosis-even-if-lead-1/m-p/762498#M37228</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-08-19T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC UCM: do not produce prognosis (even if lead=1)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-UCM-do-not-produce-prognosis-even-if-lead-1/m-p/762506#M37230</link>
      <description>&lt;P&gt;It works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you so much, Koen!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-UCM-do-not-produce-prognosis-even-if-lead-1/m-p/762506#M37230</guid>
      <dc:creator>asolk</dc:creator>
      <dc:date>2021-08-19T12:31:40Z</dc:date>
    </item>
  </channel>
</rss>

