<?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: Unobserved Components Model in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213943#M1351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;Thank you i was able to sort the problem by using the input command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;I have a data set with 64 observations and the graph suggests a trend+cycle model. i start with the LLT model and utilize the following command &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;ucm&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; data = book;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; year interval = year;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; level;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;irregular&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;level&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;slope&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;cycle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;cycle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;however this is a stationary cycle and i want to estimate stochastic cycles so i modify the command and use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;cycle rho=1 noest=rho;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;cycle rho=1 noest=rho;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;however the estimates are not correct for example the cycle period is above 100. Also can I specify the frequency in the command???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2015 06:16:49 GMT</pubDate>
    <dc:creator>jaweriahh</dc:creator>
    <dc:date>2015-08-03T06:16:49Z</dc:date>
    <item>
      <title>Unobserved Components Model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213941#M1349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;I have annual time series data for 54 years. I am trying to estimate the Unobserved Components Model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;first I import the data using the option &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;file &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Import Data&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;then I use the command &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Print data -&amp;gt; Proc print data= file name&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;I run the UCM using the command &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;proc ucm data=filename; id year interval=year; model variable; irregular; level; slope; estimate;run;&lt;/SPAN&gt;. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;However I get the error "the id value at observation number 2 is invalid. I am able to run UCM for the help datafile in SAS (SeriesG air) but not for my actual data&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #000000; background: white;"&gt;Thank you in advance&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 07:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213941#M1349</guid>
      <dc:creator>jaweriahh</dc:creator>
      <dc:date>2015-07-30T07:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unobserved Components Model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213942#M1350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;I suspect your data does not contain a valid ID variable - most likely your variable YEAR is character or at least not in date format.&lt;/P&gt;&lt;P&gt;See: &lt;A href="http://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_intervals_toc.htm"&gt;http://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_intervals_toc.htm&lt;/A&gt; for more information.&lt;/P&gt;&lt;P&gt;Would you be able to share your data or a subset?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 12:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213942#M1350</guid>
      <dc:creator>udo_sas</dc:creator>
      <dc:date>2015-07-31T12:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unobserved Components Model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213943#M1351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;Thank you i was able to sort the problem by using the input command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;I have a data set with 64 observations and the graph suggests a trend+cycle model. i start with the LLT model and utilize the following command &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;ucm&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; data = book;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; year interval = year;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: blue; background: white;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt; level;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;irregular&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;level&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;slope&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;cycle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;cycle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: red; background: white;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: Consolas;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;however this is a stationary cycle and i want to estimate stochastic cycles so i modify the command and use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;cycle rho=1 noest=rho;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;cycle rho=1 noest=rho;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;however the estimates are not correct for example the cycle period is above 100. Also can I specify the frequency in the command???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 06:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213943#M1351</guid>
      <dc:creator>jaweriahh</dc:creator>
      <dc:date>2015-08-03T06:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unobserved Components Model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213944#M1352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Identifying cycles can be tricky.&amp;nbsp; High frequency cycle can be masked by an irregular component and low frequency cycle can get masked by a flexible trend.&amp;nbsp; I am not sure why you are using two cycle statements.&amp;nbsp; Do you think there are multiple cycles?&amp;nbsp; UCM does permit you to control all aspects of cycle specification: rho=, variance= and period= options along with noest= parenthesized list gives you all the control (period specification is equivalent to frequency specification; period=2*Pi/frequency).&amp;nbsp; Anyhow, here are some steps that might help in difficult cycle identification.&amp;nbsp; All these steps try to reduce the flexibility of the trend component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; If the series level appears relatively constant, use constant trend: level variance=0 noest;&amp;nbsp; No slope term.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; If the series seems to have a fairly constant linear trend, use the line as a trend:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; level variance=0 noest; slope variance=0 noest;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; If the series has more complicated trend, use a smoother version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; level variance=0 noest; slope;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start with just one cycle first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UCM doc: &lt;A href="http://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_syntax06.htm" title="http://support.sas.com/documentation/cdl/en/etsug/68148/HTML/default/viewer.htm#etsug_ucm_syntax06.htm"&gt;SAS/ETS(R) 14.1 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 17:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213944#M1352</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2015-08-04T17:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unobserved Components Model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213945#M1353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I start with plotting the data. The plot shows the presence of cycles. Closer scrutiny seems to suggest a cycle of around 9-11 years and a smaller one of 5-6 years (this matches the theoretical background of my research problem).&lt;/P&gt;&lt;P&gt;However when I use the &lt;STRONG&gt;proc ucm&lt;/STRONG&gt; statement my estimates are incorrect (cycle periods are in hundreds and thousands!)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;I have tried all the steps you have suggested&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; (1 cycle, level variance=0 noest, level variance=0 noest; slope variance=0 noest and level variance=0 noest; slope). &lt;/SPAN&gt;However my cycle estimates are still very large in one case it is 2222.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;Could you suggest what step I can take????? &lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG&gt;(I tried to attach my data but the link did not work for me)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 07:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213945#M1353</guid>
      <dc:creator>jaweriahh</dc:creator>
      <dc:date>2015-08-06T07:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unobserved Components Model</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213946#M1354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please send me your data.&amp;nbsp; &lt;A href="mailto:rajesh.selukar@sas.com"&gt;rajesh.selukar@sas.com&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 13:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Unobserved-Components-Model/m-p/213946#M1354</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2015-08-06T13:24:52Z</dc:date>
    </item>
  </channel>
</rss>

