<?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: How to Convert R code to SAS - ETS HP FILTER in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840145#M4537</link>
    <description>&lt;P&gt;Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Check PROC&amp;nbsp;TIMESERIES and its options:&lt;/P&gt;
&lt;P&gt;OUTTREND=&amp;nbsp;OUTSEASON=&lt;/P&gt;
&lt;P&gt;P.S. check the examples in documentation,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check PROC UCM&lt;/P&gt;
&lt;P&gt;And I quote:&lt;/P&gt;
&lt;P&gt;The UCMs are also called structural models in the time series literature. A&lt;BR /&gt;UCM decomposes the response series into components such as &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;trend, seasonals, cycles,&lt;/STRONG&gt;&lt;/FONT&gt; and the regression&lt;BR /&gt;effects due to predictor series.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Oct 2022 10:40:14 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-10-23T10:40:14Z</dc:date>
    <item>
      <title>How to Convert R code to SAS - ETS HP FILTER</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840142#M4536</link>
      <description>&lt;P&gt;How can we convert this R code into SAS ETS ?&lt;/P&gt;&lt;P&gt;We have run this code on sashelp.air file - see results attached&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------- The code -----------------------------------------------------------&lt;/P&gt;&lt;P&gt;#change the path&lt;/P&gt;&lt;P&gt;df&amp;lt;- read.csv("\download\AIR.csv")&amp;nbsp;&lt;/P&gt;&lt;P&gt;lambda=26000&lt;/P&gt;&lt;P&gt;HP_FILTER_AIR= hpfilter(df$AIR,type=c("lambda"),drift=FALSE,freq=lambda)&lt;/P&gt;&lt;P&gt;df$cycle &amp;lt;- HP_FILTER_AIR$cycle&lt;/P&gt;&lt;P&gt;df$trend &amp;lt;- HP_FILTER_AIR$trend&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 09:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840142#M4536</guid>
      <dc:creator>J111</dc:creator>
      <dc:date>2022-10-23T09:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert R code to SAS - ETS HP FILTER</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840145#M4537</link>
      <description>&lt;P&gt;Calling &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Check PROC&amp;nbsp;TIMESERIES and its options:&lt;/P&gt;
&lt;P&gt;OUTTREND=&amp;nbsp;OUTSEASON=&lt;/P&gt;
&lt;P&gt;P.S. check the examples in documentation,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check PROC UCM&lt;/P&gt;
&lt;P&gt;And I quote:&lt;/P&gt;
&lt;P&gt;The UCMs are also called structural models in the time series literature. A&lt;BR /&gt;UCM decomposes the response series into components such as &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;trend, seasonals, cycles,&lt;/STRONG&gt;&lt;/FONT&gt; and the regression&lt;BR /&gt;effects due to predictor series.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 10:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840145#M4537</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-10-23T10:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert R code to SAS - ETS HP FILTER</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840146#M4538</link>
      <description>&lt;P&gt;See this example in the documentation of the UCM procedure:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/etsug/15.2/etsug_ucm_examples05.htm" target="_blank"&gt;SAS Help Center: Trend Removal Using the Hodrick-Prescott Filter&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also this discussion by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43004"&gt;@rselukar&lt;/a&gt;&amp;nbsp;:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Hodrick-Prescott-Filter-Comparison/td-p/303995" target="_blank"&gt;Solved: Hodrick-Prescott Filter Comparison - SAS Support Communities&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 10:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840146#M4538</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-10-23T10:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert R code to SAS - ETS HP FILTER</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840148#M4539</link>
      <description>&lt;BR /&gt;Thanks a lot - this code gives the wanted results !&lt;BR /&gt;&lt;BR /&gt;proc expand data=sashelp.air out=fexp method=none ;&lt;BR /&gt;id date;&lt;BR /&gt;Convert air=hpt/transformout=(hp_t 26000) ;&lt;BR /&gt;Convert air=hpc/transformout=(hp_c 26000) ;&lt;BR /&gt;run ;</description>
      <pubDate>Sun, 23 Oct 2022 13:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-Convert-R-code-to-SAS-ETS-HP-FILTER/m-p/840148#M4539</guid>
      <dc:creator>J111</dc:creator>
      <dc:date>2022-10-23T13:02:30Z</dc:date>
    </item>
  </channel>
</rss>

