<?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: i want know these options more detail in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/544840#M3489</link>
    <description>&lt;P&gt;Hello. I'm using the ATSM package of the Proc TSMODEL. I would like to know if the EXTREME string of the PREFILTER option of the&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIAGSPEC.SetOption Method, is equivalent to the OUTLIER OPTION of the ARIMAX statement of the PROC HPF DIAGNOSE. Here below the 2 statements (the first for the PROC TSMODEL and the second for the PROC HPFDIAGNOSE).&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Many thanks in advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc tsmodel; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;diagspec.setOption('PREFILTER','EXTREME');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc hpfdiagnose;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arimax outlier=(detect=yes); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run; &lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 13:11:07 GMT</pubDate>
    <dc:creator>max64</dc:creator>
    <dc:date>2019-03-21T13:11:07Z</dc:date>
    <item>
      <title>i want know these options more detail</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/536329#M3456</link>
      <description>&lt;P&gt;Hello. I'm using Visual forecasting.&lt;/P&gt;&lt;P&gt;While using atsm package in TSMODEL procedure, I wonder the difference&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;diagnose.setOption('back', 6)&lt;/LI&gt;&lt;LI&gt;forecast.setOption('back',6)&lt;/LI&gt;&lt;LI&gt;diagnose.setOption('holdout', 6)&lt;/LI&gt;&lt;LI&gt;forecast.setOption('holdout',6)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Last time, i get answer &amp;lt;&lt;FONT size="2"&gt;What is the difference of diagnose.setOption('holdout') and forecast.setOption('holdout')??&amp;gt; like this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;All options for diagnose object determine how to choose best models from model families; all options for forecast objects determine how to choose the best model from model selection list.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;For example, in this example code, ARIMA and ESM model families are enabled, so the&amp;nbsp;diagnose.setOption('holdout')&amp;nbsp; helps choose one model from ARIMA family and one model from ESM family. If you don't set this option explicitly, it will use the default value 0 for holdout. After you already have a list of models, the forecast object&amp;nbsp;forecast.setOption('holdout') helps select the best model among this list. If you don't set this option explicitly, it will use the default value 0 for holdout when making this decision.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;So in your case, when you want to use non-zero holdout, you might want to specify this options in both objects to be consistent.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i'm still wondering these options and i want to know more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;diagnose.setOption('back', 6) &amp;amp;&amp;nbsp;forecast.setOption('back',6) Also Are these options difference same??&lt;/LI&gt;&lt;LI&gt;When I use BACK or HOLDOUT Options, dose these options estimate Y or use other method of forecasting??&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1122.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27236i5D3E3B3F1C6CEA83/image-size/large?v=v2&amp;amp;px=999" role="button" title="1122.png" alt="1122.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I draw what i think about Back &amp;amp; Holdout , Is this alright?&lt;/LI&gt;&lt;LI&gt;If I use &lt;EM&gt;&lt;U&gt;ARIMAX model&lt;/U&gt;&lt;/EM&gt;, does &lt;U&gt;BACK Option estimate X&lt;/U&gt; or use other method of forecasting(eg. reflect X actual values...)??&lt;/LI&gt;&lt;LI&gt;Also, does &lt;U&gt;HOLDOUT Option estimate X&lt;/U&gt; or use other method of forecasting??&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank u &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 01:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/536329#M3456</guid>
      <dc:creator>EJ2</dc:creator>
      <dc:date>2019-02-18T01:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: i want know these options more detail</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/536665#M3457</link>
      <description>&lt;P&gt;Suppose your historical data indices are 1,...,T and you specify both holdout (H) and back (B) options.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The last B data points [T-B+1,...,T] are considered out-sample region. It is used to evaluate performance of the model.&lt;/LI&gt;
&lt;LI&gt;The holdout region, which is used for model selection, is [T-B-H+1,...,T-B].&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In general, the first T-B-H data points are used to estimate parameters of different models. The best model for each family of ARIMA, ESM or UCM (the models you specified in DIAGSPEC) are then selected based on the performance of model against the holdout region and model selection criteria. Once the model is selected, the parameters are re-estimated using the first T-B data points. If you specify lead option as L, FORENG object computes the forecast values of L data points starting at T-B+1. That is, your forecast horizon will be [T-B+1,...,T-B+L]. If you want your forecast horizon to include the points up to T+L, you need to set lead as L+B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as your question on independent variables, TSDF.AddX method extends your independent variables using the&lt;SPAN&gt;&amp;nbsp;best suited exponential smoothing model (STOCHASTIC) by default, unless you provide the future values. You can override the STOCHASTIC option using rc = TSDF.AddX('EXTEND', &lt;EM&gt;value&lt;/EM&gt;) command; see&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=castsp&amp;amp;docsetTarget=castsp_atsm_sect006.htm&amp;amp;docsetVersion=8.3&amp;amp;locale=en#castsp.atsm.tsdfAddX" target="_self"&gt;ATSM Documentation&lt;/A&gt; for valid &lt;EM&gt;value&lt;/EM&gt;s.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 08:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/536665#M3457</guid>
      <dc:creator>imvash</dc:creator>
      <dc:date>2019-02-19T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: i want know these options more detail</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/537059#M3458</link>
      <description>&lt;P&gt;Thank u for your answer.&lt;/P&gt;&lt;P&gt;And I want to make sure your answer.&lt;/P&gt;&lt;P&gt;You said&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;As far as your question on independent variables, TSDF.AddX method extends your independent variables using the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;best suited exponential smoothing model (STOCHASTIC) by default, unless you provide the future values. You can override the STOCHASTIC option using rc = TSDF.AddX('EXTEND',&amp;nbsp;&lt;EM&gt;value&lt;/EM&gt;) command;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Does these statements mean "If i provide the future values of X in ARIMAX, the model use the future values of X."??&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Therefore, In the case of using Back option, because the model has the future values of independent values, the model use the future values of X and forecast Y,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;&lt;BR /&gt;And in the case of using Holdout option, having no future values of independent valuse, the model estimate X(using ESM model) and forecast Y, right????&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 12:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/537059#M3458</guid>
      <dc:creator>EJ2</dc:creator>
      <dc:date>2019-02-20T12:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: i want know these options more detail</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/537150#M3459</link>
      <description>&lt;P&gt;Yes. If you already have future values of X, they will be used. Otherwise, they will be extended using ESM (by default).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example below. I created a random dataset that spans from 1980Q1 to 1990Q4, and used it in proc tsmodel to forecast values of Y with holdout=15, back=6 and lead=20:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
	call streaminit(123);
	do i = 1980 to 1990;
		do j = 1 to 4;
			date = yyq(i,j);
			x = exp(date/10000) + 0.2*rand("Uniform");
			y = 2*x+1;
			output;
		end;
	end;
	keep date x y;
	format date yyq6.;
run;

cas mycas;
libname mycas sasioca sessref = mycas;

data mycas.mydata;
	set mydata;
	if year(date)&amp;gt;1988 then y = .;
run;

proc tsmodel data = mycas.mydata
	outobj = ( 
	outfor = mycas.outfor 
	outstat = mycas.outstat
	outselect = mycas.outselect
	outmodelinfo = mycas.outmodelinfo
	outest = mycas.outest
	outindep = mycas.outindep
	)
	outlog = mycas.outlog;
	
	id date interval = quarter;
	var x y;
	require atsm;

	submit;
	declare object dataFrame(tsdf);
	declare object diagnose(diagnose);
	declare object diagspec(diagspec);
	declare object forecast(foreng);
	
	rc = dataFrame.initialize();
	rc = dataFrame.addY(y);
	rc = dataFrame.addx(x,"required", "yes", "extend", "STOCHASTIC");
	
	rc = diagspec.open();
	rc = diagspec.SetARIMAX('SIGLEVEL',0.00000001);
	rc = diagspec.SetTrend('DIFF', 'none','SDIFF','none');
	rc = diagspec.close();
	
	rc = diagnose.initialize(dataFrame);
	rc = diagnose.setSpec(diagspec);
	rc = diagnose.setOption('BACK', 6);
	rc = diagnose.setOption('HOLDOUT', 15);
	rc = diagnose.Run();

	rc = forecast.initialize(diagnose);
	rc = forecast.setOption('HORIZON', .);
	rc = forecast.setOption('LEAD', 20);
	rc = forecast.setOption('BACK', 6);
	rc = forecast.setOption('HOLDOUT', 15);
	rc = forecast.Run();
	
	declare object outfor(outfor);
	declare object outstat(outstat);
	declare object outselect(outselect);
	declare object outmodelInfo(outmodelinfo);
	declare object outest(outest);
	declare object outindep(outindep);
	
	rc = outfor.collect(forecast);
	rc = outstat.collect(forecast);
	rc = outselect.collect(forecast);
	rc = outmodelInfo.collect(forecast);
	rc = outest.collect(forecast);
	rc = outindep.collect(forecast);
	endsubmit;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this example, values for X and Y are provided for 1980Q1 to 1990Q4 and 1980Q1 to 1988Q4, respectively. The values for independent variable X are first predicted for 1991Q1 to 1992Q2, then will be used to predict values of Y. The holdout region (has 15 data points) is 1983Q4 to 1987Q2 and back region (has 6 data points) is 1987Q3 to 1988Q4. The forecast region (has 20 data points) starts at&amp;nbsp;1987Q3 and ends at 1992Q2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As illustrated in the example, you can get independent extended values through outindep object.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 18:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/537150#M3459</guid>
      <dc:creator>imvash</dc:creator>
      <dc:date>2019-02-20T18:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: i want know these options more detail</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/544840#M3489</link>
      <description>&lt;P&gt;Hello. I'm using the ATSM package of the Proc TSMODEL. I would like to know if the EXTREME string of the PREFILTER option of the&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIAGSPEC.SetOption Method, is equivalent to the OUTLIER OPTION of the ARIMAX statement of the PROC HPF DIAGNOSE. Here below the 2 statements (the first for the PROC TSMODEL and the second for the PROC HPFDIAGNOSE).&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Many thanks in advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc tsmodel; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;diagspec.setOption('PREFILTER','EXTREME');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc hpfdiagnose;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arimax outlier=(detect=yes); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run; &lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 13:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/i-want-know-these-options-more-detail/m-p/544840#M3489</guid>
      <dc:creator>max64</dc:creator>
      <dc:date>2019-03-21T13:11:07Z</dc:date>
    </item>
  </channel>
</rss>

