<?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: Forecasting with Regression Model in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540070#M7172</link>
    <description>&lt;P&gt;I can not find the {i} icon&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 15:41:59 GMT</pubDate>
    <dc:creator>sasgiaz</dc:creator>
    <dc:date>2019-03-04T15:41:59Z</dc:date>
    <item>
      <title>Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540034#M7162</link>
      <description>&lt;P&gt;Hello again. I would like to do forecast with regression model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use this source code but the result won't come out and I don't know what could be wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data = armaxvlp;&lt;BR /&gt;model Bill = Time DL1 DL2 DL3 D1 D2 D3 D4 D5 D6 Mt/noint;&lt;BR /&gt;output out = Res R = Bill_Res;&lt;BR /&gt;run;&lt;BR /&gt;forecast out = ramalan lead = 12;&lt;BR /&gt;run;&lt;BR /&gt;proc print data = ramalan (obs = 48);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 14:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540034#M7162</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-04T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540049#M7166</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200140"&gt;@sasgiaz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello again. I would like to do forecast with regression model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use this source code but the result won't come out and I don't know what could be wrong.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;We need a lot more information than just saying that the results don't come out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be specific and detailed.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Show us the SAS LOG (Click on the {i} icon and paste the log into that window DO NOT SKIP THIS STEP)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the results where you don't see what you want to see.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 14:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540049#M7166</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-04T14:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540054#M7167</link>
      <description>&lt;P&gt;It says like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;132 *Peramalan;&lt;BR /&gt;133 forecast out = ramalan lead = 12;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;134 run;&lt;/P&gt;&lt;P&gt;WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.RES may be incomplete. When this step was stopped there were 36&lt;BR /&gt;observations and 14 variables.&lt;BR /&gt;WARNING: Data set WORK.RES was not replaced because this step was stopped.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 17.98 seconds&lt;BR /&gt;cpu time 2.07 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540054#M7167</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-04T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540061#M7168</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Click on the {i} icon and paste the log into that window &lt;FONT color="#FF0000"&gt;DO NOT SKIP THIS STEP&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't just show us the errors, we need to see the entire LOG for this PROC.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540061#M7168</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-04T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540065#M7170</link>
      <description>&lt;P&gt;Sure, is this explain enough?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;161 proc reg data = armaxvlp;&lt;BR /&gt;162 model Bill = Waktu DL1 DL2 DL3 D1 D2 D3 D4 D5 D6 Mt/influence;&lt;BR /&gt;163 output out = Res R = Bill_Res;&lt;BR /&gt;164 run;&lt;/P&gt;&lt;P&gt;165 *Pemodelan ARMAX Variasi Liburan dan Perdagangan Trend Deterministik Tanpa Variabel&lt;BR /&gt;165! Konstan;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.RES has 36 observations and 14 variables.&lt;BR /&gt;NOTE: PROCEDURE REG used (Total process time):&lt;BR /&gt;real time 2.15 seconds&lt;BR /&gt;cpu time 0.53 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;166 proc reg data = armaxvlp;&lt;BR /&gt;167 model Bill = Waktu DL1 DL2 DL3 D1 D2 D3 D4 D5 D6 Mt/noint;&lt;BR /&gt;168 output out = Res R = Bill_Res;&lt;BR /&gt;169 run;&lt;/P&gt;&lt;P&gt;170 *Peramalan;&lt;BR /&gt;171 forecast out = ramalan lead = 12;&lt;BR /&gt;--------&lt;BR /&gt;180&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;172 run;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540065#M7170</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-04T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540067#M7171</link>
      <description>&lt;P&gt;We're trying to help you, but you have to help us. Click on the {i} icon and paste the log into that window.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540067#M7171</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-04T15:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540070#M7172</link>
      <description>&lt;P&gt;I can not find the {i} icon&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540070#M7172</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-04T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540072#M7173</link>
      <description>&lt;P&gt;It is in the icon bar immediately above where you type your messages, sixth from the left.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540072#M7173</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-04T15:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540075#M7175</link>
      <description>&lt;PRE&gt;210  proc reg data = armaxvlp;
211  model Bill = Waktu DL1 DL2 DL3 D1 D2 D3 D4 D5 D6 Mt/noint;
212  output out = Res R = Bill_Res;
213  run;

214
215  *Peramalan;
216  forecast out = ramalan lead = 12;
     --------
     180
NOTE: The previous statement has been deleted.
ERROR 180-322: Statement is not valid or it is used out of proper order.
217  run;

WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.RES may be incomplete.  When this step was stopped there were 36
         observations and 14 variables.
WARNING: Data set WORK.RES was not replaced because this step was stopped.
NOTE: PROCEDURE REG used (Total process time):
      real time           2.00 seconds
      cpu time            0.53 seconds



218  proc print data = ramalan (obs = 48);
ERROR: File WORK.RAMALAN.DATA does not exist.
219  run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Mar 2019 15:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540075#M7175</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-04T15:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540087#M7177</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no FORECAST statement in PROC REG. So, the FORECAST statement doesn't execute and produce an output data set. When you put a RUN; statement in PROC REG, it executes the command, but does not end PROC REG. You need a QUIT; statement to end PROC REG, it should go immediately after the RUN; statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to do a time series forecast, there are other tools that can do this (one is PROC ARIMA), or you can have PROC REG do a very crude forecast, for example if you had data from 1980 to 2018, and the year is a term in the model, you could have a crude forecast from PROC REG for 2019, but I don't see how that would fit here, as you don't seem to have a time variable in your model.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 16:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540087#M7177</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-04T16:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540093#M7178</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have the time variable which I named it as "Waktu". If that so, I still can have the forecast from the proc reg?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because, actually I use the regression analysis on my time series data to analyze holiday and trading day variation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I got the regression model as its best fit and want to do the forecast for at least a year.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 16:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540093#M7178</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-04T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540094#M7179</link>
      <description>For the record, the data I have is from 2016 to 2018, monthly.</description>
      <pubDate>Mon, 04 Mar 2019 16:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540094#M7179</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-04T16:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540096#M7180</link>
      <description>&lt;P&gt;If you are fitting a regression on a monthly data set, from 2016 to 2018, and now you want forecasts for 2019, you can get predicted values for 2019 but you need to have all the values of the x-variables in the regression present, plus Waktu must be months in 2019.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words, all the variables in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;model Bill = Waktu DL1 DL2 DL3 D1 D2 D3 D4 D5 D6 Mt/noint;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;except for the y-variable BILL must be present (not missing). Then you can get predicted values from the output statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;output out = Res R = Bill_Res p=bill_pred;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Mar 2019 16:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540096#M7180</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-04T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540621#M7238</link>
      <description>&lt;P&gt;But if I have all the value of x variables untill 2019, I will have different value of parameters for the best fit models, right? how about that...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 00:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540621#M7238</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-06T00:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540761#M7255</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200140"&gt;@sasgiaz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;But if I have all the value of x variables untill 2019, I will have different value of parameters for the best fit models, right? how about that...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know what you mean. Explain further.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 13:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/540761#M7255</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-06T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541672#M7402</link>
      <description>&lt;P&gt;It's ok, I've got it done already. Thx alot for explaining patiently &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you don't mind to help me one more time..&lt;/P&gt;&lt;P&gt;I did the regression analysis. I know that generally, the value of coefficient determination will become higher as we add more variables into the model. But the problem is, eventhough the&amp;nbsp;coefficient determination is high as much as 99%, I got some variables insignificant, even at alpha 10%. Do you know what's the reason it may possibly happen?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 08:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541672#M7402</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-09T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541680#M7406</link>
      <description>&lt;P&gt;Coefficient of determination (R-squared) and insignificant variables are independent. One does not imply the other.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 12:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541680#M7406</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-09T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541684#M7407</link>
      <description>&lt;P&gt;Then why do you think of model which has insignificant variables and high coefficient of detemination at the same time?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 13:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541684#M7407</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-09T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541699#M7408</link>
      <description>&lt;P&gt;Just because you put a term into a model that fits well, it does not mean that the term is going to be significant. It means that this term is really not contributing to the fit.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 15:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541699#M7408</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-09T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Regression Model</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541757#M7420</link>
      <description>&lt;P&gt;Ok then, thankyou so much&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 00:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Forecasting-with-Regression-Model/m-p/541757#M7420</guid>
      <dc:creator>sasgiaz</dc:creator>
      <dc:date>2019-03-10T00:43:12Z</dc:date>
    </item>
  </channel>
</rss>

