<?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: Proc UCM and unobserved component models in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530240#M3413</link>
    <description>&lt;P&gt;Thanks you very much that was very helpful. I have ordered the book you mentioned and will read up on those link.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was particularly interested to find out you don't specify slope and level when using differencing. Nothing I saw until now indicated that although it makes sense.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 21:51:23 GMT</pubDate>
    <dc:creator>noetsi</dc:creator>
    <dc:date>2019-01-25T21:51:23Z</dc:date>
    <item>
      <title>Proc UCM and unobserved component models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/529922#M3411</link>
      <description>&lt;P&gt;I have worked with SAS and Time Series&amp;nbsp; but am brand new to UCM and PROC UCM (the former meaning unobserved component models). My job, one of them, is to project spending a year in advance by month. I have used primarily exponential smoothing models (PROC ESM)&amp;nbsp; combined with expert judgement in cases time series will not work well. But I am looking to expand our approaches and UCM looks very promising.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One limit, my organization does not really know why our spending changes over time, we are a public sector service organization and statistics and financial analysis is new here. Also I have found little theory in vocational rehabilitation in this area, This makes it difficult to get a sense how to specifically model some of the elements in UCM. For example, I have no idea how we would model seasonality or cycles, although the former likely exists because of contracting and the number of business days in a month for processing. If anyone knows any good books on that type of detail I would love to know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So some questions about UCM/PROC UCM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Is there any way to generate a damptrend model in UCM? One where you believe the data will trend and then stabilize.&amp;nbsp; Various exponential models do this, but I can not find it in the documentation of PROC UCM or on line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) If you believe the data will remain stable (a period of no increases) followed by a trend upward is there anyway the components in UCM can be used to address this? I thought splines might address this (or other non-linear functions) but they appear to apply to regression only (predictors).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) ARMA models require differencing if there is a trend in the data commonly - something nearly always true with our data. The DEPLAG command appears to do this, but it also (if I understand the documentation correctly) adds lags of Y&amp;nbsp; to the predictor list - which in the time series regression I know is fairly serious - something I would prefer to avoid. I also don't know what specifying this does to the slope command if you specify that. Does it remove trend from the model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have worked with ARIMA, but am not sure how differencing applies to UCM models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help on this.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 23:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/529922#M3411</guid>
      <dc:creator>noetsi</dc:creator>
      <dc:date>2019-01-24T23:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc UCM and unobserved component models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530140#M3412</link>
      <description>&lt;P&gt;I am glad you are considering UCMs for your time series modeling. Since you already use ARIMA and ESM, transition to UCMs should be easy.&amp;nbsp; I think you will like the rich output provided by PROC UCM.&amp;nbsp; First let me suggest a book:&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: AvenirNext,Helvetica,Arial,sans-serif; font-size: 14.06px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Pelagatti, M.&amp;nbsp;M. (2015). &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #333333; font-family: AvenirNext,Helvetica,Arial,sans-serif; font-size: 14.06px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;EM style="box-sizing: border-box;"&gt;Time Series Modelling with Unobserved Components&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: AvenirNext,Helvetica,Arial,sans-serif; font-size: 14.06px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;. Boca Raton, FL: CRC Press.&lt;/SPAN&gt;&amp;nbsp; This book a easier to follow compared to the classic by Harvey mentioned in the UCM doc.&amp;nbsp; Additionally, I have provided links to several white papers on UCM modeling at the end of my reply to help you familiarize with PROC UCM and a related ETS procedure, PROC SSM.&amp;nbsp; Now let us consider your questions one by one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Can one specify damped trend model in PROC UCM?&amp;nbsp; If you specify your trend using the LEVEL and SLOPE statements then the answer is no.&amp;nbsp; However, since you can specify an ARIMA model in UCM, you can specify an ARIMA(1,1,2) model that is similar to ESM damped trend model.&amp;nbsp; By the way, the trends specified using LEVEL and SLOPE statements can model quite general trend patterns: e.g., if the trend pattern damps during the historical period then the time-varying slope can adjust to such damping (if the trend does not damp during the historical period but one expects it to damp in the future, then a damped trend model could be useful but it's damping parameter will not have been well-estimated).&amp;nbsp; Alternatively, you can specify a damped trend model in PROC SSM by using the TREND statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; The trend specified using LEVEL and SLOPE statements can adjust to such changes in the historical period.&amp;nbsp; By the way, PROC UCM provides a variety of ways to specify regression effects (usual regressors in the MODEL statement, time-varying regression coefficients and nonlinear regression in RANDOMREG and SPLINEREG statements, and transfer function in the TF statement (in the latest release ETS 15.1)).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; You are correct that you can specify differencing using the DEPLAG statement (see the ARIMA modeling example in the UCM doc&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_examples08.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_ucm_examples08.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt; to see how to specify the Airline model ARIMA(0,1,1)(0,1,1)12).&amp;nbsp; Typically when you specify trend using differencing (DEPLAG statement), you don't use the LEVEL and SLOPE statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know it might take a little bit of thought and going through the DOC examples to follow my answers.&amp;nbsp; Anyway, here are some useful links on this subject:&lt;/P&gt;
&lt;P&gt;Latest UCM and SSM chapters in the ETS/15.1 doc:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=titlepage.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=titlepage.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A conference proceeding:&lt;SPAN style="margin: 0px; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt; &lt;A href="https://forecasters.org/wp-content/uploads/gravity_forms/7-621289a708af3e7af65a7cd487aee6eb/2016/07/Selukar_Rajesh_ISF2016.pdf" target="_blank"&gt;https://forecasters.org/wp-content/uploads/gravity_forms/7-621289a708af3e7af65a7cd487aee6eb/2016/07/Selukar_Rajesh_ISF2016.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="margin: 0px; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt;An SGF paper:&amp;nbsp;&lt;A tabindex="0" style="background-color: transparent; box-sizing: border-box; color: #287eab; font-family: AvenirNext,Helvetica,Arial,sans-serif; font-size: 14.06px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" href="http://support.sas.com/resources/papers/proceedings17/SAS0456-2017.pdf" target="_blank" rel="noopener"&gt;http://support.sas.com/resources/papers/proceedings17/SAS0456-2017.pdf&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="margin: 0px; font-family: 'Calibri',sans-serif; font-size: 11pt;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530140#M3412</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2019-01-25T18:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc UCM and unobserved component models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530240#M3413</link>
      <description>&lt;P&gt;Thanks you very much that was very helpful. I have ordered the book you mentioned and will read up on those link.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was particularly interested to find out you don't specify slope and level when using differencing. Nothing I saw until now indicated that although it makes sense.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 21:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530240#M3413</guid>
      <dc:creator>noetsi</dc:creator>
      <dc:date>2019-01-25T21:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc UCM and unobserved component models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530242#M3414</link>
      <description>&lt;P&gt;Please see the UCM doc example I mentioned about the Airline model where the trend specification does not use LEVEL and SLOPE but the differencing using the DEPLAG statement.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 22:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530242#M3414</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2019-01-25T22:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc UCM and unobserved component models</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530641#M3416</link>
      <description>&lt;P&gt;Since the user had a question about specifying trend without using LEVEL and SLOPE statements, I have decided to provide some syntax examples. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For illustration I am using the sashelp.air data set, which contains the well-known airline series.&amp;nbsp; The airline series is used in a few different places in the UCM doc (Getting started example and Example 8).&amp;nbsp; These illustrations show that the log(air) series has a linear trend with essentially constant slope and a strong seasonal component.&amp;nbsp; Several alternate models can capture this behavior.&amp;nbsp; Of course, some will fit better than the others.&amp;nbsp; I am using two such models.&amp;nbsp; The first one is the traditional Airline model suggested by Box and Jenkins (ARIMA(0,1,1)(0,1,1)12 NOINT) that is known to fit the data well.&amp;nbsp; In this case the trend (and seasonal component) is entirely specified using the differencing (DEPLAG statement). &amp;nbsp; The second example uses random walk with constant drift for trend, trigonometric seasonal component, and MA(1) noise.&amp;nbsp; The random walk part is specified using non-seasonal differencing (DEPLAG) while the constant drift is specified using LEVEL (in this case the LEVEL specification is actually specifying slope!). &amp;nbsp; The seasonal component is specified using the SEASON statement.&amp;nbsp; These examples are shown just to show the flexibility of the UCM procedure.&amp;nbsp; Both models are OK.&amp;nbsp; The Airline model fits the data slightly better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;set sashelp.air;&lt;BR /&gt;logair=log(air);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;/*---AIRLINE Model: ARIMA(0,1,1)(0,1,1)12 NOINT--- */&lt;BR /&gt;proc ucm data=test ;&lt;BR /&gt;id date interval=month;&lt;BR /&gt;model logair;&lt;BR /&gt;irregular q=1 sq=1 s=12;&lt;BR /&gt;deplag lags=(1)(12) phi=1 1 noest;&lt;BR /&gt;estimate back=12 plot=panel;* lik=marginal;&lt;BR /&gt;forecast back=12 lead=12 plot=decomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/*---- ARIMA(0,1,1) with CONSTANT and Trigonometric Seasonal---&lt;BR /&gt;That is, random walk with drift as a trend, trigonometric seasonal, and MA(1) noise (irregular).&lt;BR /&gt;The non-seasonal differencing is specified using the DEPLAG statement and drift is&lt;BR /&gt;specified using the LEVEL statement.&lt;BR /&gt;*/&lt;BR /&gt;proc ucm data=test ;&lt;BR /&gt;id date interval=month;&lt;BR /&gt;model logair;&lt;BR /&gt;irregular q=1 ;&lt;BR /&gt;level variance=0 noest plot=smooth; /* drift specification */&lt;BR /&gt;deplag lags=1 phi=1 noest;&lt;BR /&gt;season length=12 type=trig plot=smooth;&lt;BR /&gt;estimate back=12 plot=panel;* lik=marginal;&lt;BR /&gt;forecast back=12 lead=12 plot=decomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 14:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Proc-UCM-and-unobserved-component-models/m-p/530641#M3416</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2019-01-28T14:55:39Z</dc:date>
    </item>
  </channel>
</rss>

