<?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 PROC ARIMA, Differencing, and Indicator variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/249573#M13118</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a general ARIMA question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When creating an ARIMA model, if I take first differences, I also must take first differences of my covariates, correct? What if my covariate is an indicator variable, 0 or 1?&amp;nbsp; Does that variable get differenced?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 00:27:07 GMT</pubDate>
    <dc:creator>teg_76</dc:creator>
    <dc:date>2016-02-12T00:27:07Z</dc:date>
    <item>
      <title>PROC ARIMA, Differencing, and Indicator variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/249573#M13118</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a general ARIMA question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When creating an ARIMA model, if I take first differences, I also must take first differences of my covariates, correct? What if my covariate is an indicator variable, 0 or 1?&amp;nbsp; Does that variable get differenced?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 00:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/249573#M13118</guid>
      <dc:creator>teg_76</dc:creator>
      <dc:date>2016-02-12T00:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA, Differencing, and Indicator variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/249600#M13123</link>
      <description>&lt;P&gt;No, you can't difference a series that is already stationary. If you look at the IACF it is slowly decreasing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data A;
  Do i=1 To 100;
    u=IfN(Ranuni(1) gt 0.5,1,0);
	Output;
  End;
Run;

ODS Graphics On;
Proc Arima;
  Identify Var=u(1);
Run;
ODS Graphics Off;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Feb 2016 06:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/249600#M13123</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2016-02-12T06:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA, Differencing, and Indicator variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/249737#M13133</link>
      <description>&lt;P&gt;Thank you user24feb.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what happens to indicator variables when I difference the variable I'm forecasting?&amp;nbsp; Can they no longer be used in the model?&amp;nbsp; Or does it depend on the diagnostics?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/249737#M13133</guid>
      <dc:creator>teg_76</dc:creator>
      <dc:date>2016-02-12T16:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ARIMA, Differencing, and Indicator variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/250082#M13171</link>
      <description>&lt;P&gt;Sorry, I was wrong, you have to difference the dummy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;No, you can difference one series and leave another as it is.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;What exactly is your indicator variable, an outlier like here:&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data A (Keep=x_i x t);
  Retain e1 0 x1 0 x2 0 x_i_1 100;  
  Do t=-100 To 10000;
    e=Rannor(0);
	x=(0.02+0.8*x1-0.4*e1+e);
	x_i=x_i_1+x;
	e1=e;
	x1=x;
	x_i_1=x_i;
	If t&amp;gt;0 Then Output;
  End;
Run;

Data A;
  Set A; 
  dummy=IfN(t&amp;gt;=6000 &amp;amp; t&amp;lt;=7500,1,0);
  x_i_d=x_i-dummy*200; * &amp;lt;- something bad happens;
Run;

ODS Graphics On;
Proc Timeseries Data=A Plot=Series;
  Var x_i_d x_i;
Run;
Proc Arima Data=A;
  Title "Model 1: Has dent";
  Identify Var=x_i_d (1) CrossCorr=dummy (1); * 1!!!!;
  Estimate p=1 q=1 Input=dummy Method=ML;
Run;
Proc Arima Data=A;
  Title "Model 2: No dent";
  Identify Var=x_i (1);
  Estimate p=1 q=1 Method=ML;
Run;
Title;
ODS Graphics Off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 15:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-ARIMA-Differencing-and-Indicator-variables/m-p/250082#M13171</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2016-02-16T15:42:36Z</dc:date>
    </item>
  </channel>
</rss>

