<?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 ssm and sarimax in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909459#M4764</link>
    <description>&lt;P&gt;Hi, could you please verify if this is the correct way to implement a sarimax model with ssm, especially for the exogenous part?&lt;/P&gt;
&lt;PRE style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none; border-width: 0px; left: -1000px; line-height: 1.25; margin: 0px; padding: 0px; text-rendering: optimizespeed; top: 0px; background-color: #ffffff; color: #2a3037; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; position: fixed;"&gt;proc ssm data=casuser.series optimizer(technique=ACTIVESET maxiter=10) like=DIFFUSE;&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    id d interval=day;        &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    trend sarima(arima(d=1 sd=1 p=1 q=1 sq=1 s=52)) ; &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    *trend arimaTrend(arma(d=1 sd=1 p=1 q=1 sq=1 s=52)) ar=0.8550 ma=-0.9781 -0.9990  ; &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    model v = sarima x;     &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    output outfor=casuser.For;&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;run;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ssm data=casuser.series optimizer(technique=ACTIVESET maxiter=10) like=DIFFUSE;
    id d interval=week;        
    trend sarima(arima(d=1 sd=1 p=1 q=1 sq=1 s=52)) ;
    model v = sarima x;     
    output outfor=casuser.For;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Series dataset has 3 columns (d=date, v=endogenous variable, x=exogenous variable).&lt;/P&gt;
&lt;P&gt;I define an arima trend with that parameters.&lt;/P&gt;
&lt;P&gt;I model the v as: that trend AND the x, simply put in there.&lt;/P&gt;
&lt;P&gt;Is this the correct formulation for the sarimaX model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 11:15:10 GMT</pubDate>
    <dc:creator>Edoedoedo</dc:creator>
    <dc:date>2023-12-22T11:15:10Z</dc:date>
    <item>
      <title>proc ssm and sarimax</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909459#M4764</link>
      <description>&lt;P&gt;Hi, could you please verify if this is the correct way to implement a sarimax model with ssm, especially for the exogenous part?&lt;/P&gt;
&lt;PRE style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none; border-width: 0px; left: -1000px; line-height: 1.25; margin: 0px; padding: 0px; text-rendering: optimizespeed; top: 0px; background-color: #ffffff; color: #2a3037; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; position: fixed;"&gt;proc ssm data=casuser.series optimizer(technique=ACTIVESET maxiter=10) like=DIFFUSE;&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    id d interval=day;        &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    trend sarima(arima(d=1 sd=1 p=1 q=1 sq=1 s=52)) ; &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    *trend arimaTrend(arma(d=1 sd=1 p=1 q=1 sq=1 s=52)) ar=0.8550 ma=-0.9781 -0.9990  ; &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    model v = sarima x;     &lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;    output outfor=casuser.For;&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;run;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc ssm data=casuser.series optimizer(technique=ACTIVESET maxiter=10) like=DIFFUSE;
    id d interval=week;        
    trend sarima(arima(d=1 sd=1 p=1 q=1 sq=1 s=52)) ;
    model v = sarima x;     
    output outfor=casuser.For;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Series dataset has 3 columns (d=date, v=endogenous variable, x=exogenous variable).&lt;/P&gt;
&lt;P&gt;I define an arima trend with that parameters.&lt;/P&gt;
&lt;P&gt;I model the v as: that trend AND the x, simply put in there.&lt;/P&gt;
&lt;P&gt;Is this the correct formulation for the sarimaX model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 11:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909459#M4764</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2023-12-22T11:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc ssm and sarimax</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909518#M4765</link>
      <description>&lt;P&gt;Specifying ARIMAX models in the SSM (or CSSM) syntax can be a bit tedious.&amp;nbsp; I am assuming that you want to specify the model (1-B)(1-B^52) v =&amp;nbsp;(1-B)(1-B^52) x + ARMA(1,1)(0,1)52 Noise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the SSM DATA-step statements currently don't allow differecing, you must difference the x variable prior to its use in PROC SSM.&amp;nbsp; Let's say the appropriately differenced x is called x_1_52 and is part of the input data set (casuser.series).&amp;nbsp; Then you can specify your model as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc ssm data=casuser.series;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;id date interval=week;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; trend noise(arma(p=1 q=1 sq=1 s=52));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; deplag airLags(v) v(lags=(1 52 53) coeff=(1 1 -1));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; model v = airLags noise;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; output out=for;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the SSM (or CSSM) doc for more info on the DEPLAG statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 16:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909518#M4765</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2023-12-22T16:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc ssm and sarimax</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909519#M4766</link>
      <description>I am sorry, I forgot to include the regressor in the model statement!  The revised model statement is:&lt;BR /&gt;model v = airLags x_1_52 noise;</description>
      <pubDate>Fri, 22 Dec 2023 16:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909519#M4766</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2023-12-22T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc ssm and sarimax</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909525#M4767</link>
      <description>&lt;P&gt;Actually, rethinking a little, I realize that the syntax by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5590"&gt;@Edoedoedo&lt;/a&gt;&amp;nbsp;also results in the same model I specified, without having to explicitly difference x (but including diferencing in the trend statement).&amp;nbsp; So, in fact the parameter estimates and the forecasts according to both specs will be quite close.&amp;nbsp; However, the appearance of the output will be different in many ways because the state space formulations of these two specs differ.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although more tedious, the alternate spec I provided allows more control over the terms included in the model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 17:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-ssm-and-sarimax/m-p/909525#M4767</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2023-12-22T17:50:46Z</dc:date>
    </item>
  </channel>
</rss>

