<?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: Extract shift from ARMA process in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Extract-shift-from-ARMA-process/m-p/250357#M1610</link>
    <description>&lt;P&gt;you have to diff the dummy too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Arima Data=A;&lt;BR /&gt; Title "Model 1: With shift";&lt;BR /&gt; Identify Var=x_int_d (1) CrossCorr=dummy&lt;STRONG&gt;(1)&lt;/STRONG&gt;;&lt;BR /&gt; Estimate p=1 q=1 Noint Input=dummy Method=ML;&lt;BR /&gt;Run;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2016 15:32:28 GMT</pubDate>
    <dc:creator>alexchien</dc:creator>
    <dc:date>2016-02-16T15:32:28Z</dc:date>
    <item>
      <title>Extract shift from ARMA process</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Extract-shift-from-ARMA-process/m-p/250251#M1608</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simulated an ARMA 1,1 process and added a level shift. How can I get closer to the actual parameter estimates of the model if a shift is included?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;CODE class=" language-sas"&gt;Data A (Keep=x_int x t);
  Retain e1 0 x1 0 x_int_1 500;  
  Do t=-100 To 10000;
    e=Rannor(1);
	x=(0.02+0.8*x1-0.4*e1+e); * create ARMA 1,1;
	x_int=x_int_1+x; * integrate;
	e1=e;
	x1=x;
	x_int_1=x_int;
	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_int_d=x_int-dummy*200; * create shift;
Run;

ODS Graphics On;
Proc Timeseries Data=A Plot=Series;
  Var x_int_d x_int;
Run;
ODS Graphics Off;

Proc Arima Data=A;
  Title "Model 1: With shift";
  Identify Var=x_int_d (1) CrossCorr=dummy;
  Estimate p=1 q=1 Noint Input=dummy Method=ML;
Run;
Proc Arima Data=A;
  Title "Model 2: No shift";
  Identify Var=x_int (1);
  Estimate p=1 q=1 Method=ML;
Run;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;amp;kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 06:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Extract-shift-from-ARMA-process/m-p/250251#M1608</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2016-02-16T06:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extract shift from ARMA process</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Extract-shift-from-ARMA-process/m-p/250357#M1610</link>
      <description>&lt;P&gt;you have to diff the dummy too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Arima Data=A;&lt;BR /&gt; Title "Model 1: With shift";&lt;BR /&gt; Identify Var=x_int_d (1) CrossCorr=dummy&lt;STRONG&gt;(1)&lt;/STRONG&gt;;&lt;BR /&gt; Estimate p=1 q=1 Noint Input=dummy Method=ML;&lt;BR /&gt;Run;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 15:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Extract-shift-from-ARMA-process/m-p/250357#M1610</guid>
      <dc:creator>alexchien</dc:creator>
      <dc:date>2016-02-16T15:32:28Z</dc:date>
    </item>
  </channel>
</rss>

