<?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: moving statistics with proc expand in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/moving-statistics-with-proc-expand/m-p/449944#M3056</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can&amp;nbsp;add the TRIMLEFT 3&amp;nbsp;operand after the MOVSUM 4 specification in your CONVERT statement to set the first 3 moving sum values within each BY group to missing.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;convert x=movsum_x / transform=(movsum 4 trimleft 3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2018 14:40:39 GMT</pubDate>
    <dc:creator>dw_sas</dc:creator>
    <dc:date>2018-03-30T14:40:39Z</dc:date>
    <item>
      <title>moving statistics with proc expand</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/moving-statistics-with-proc-expand/m-p/449850#M3055</link>
      <description>&lt;P&gt;I want a &lt;FONT face="Courier New" size="2"&gt;movsum 4 but I don't want that first couple of observations that are computed with 1, 2, 3 observations.&amp;nbsp; I only want observations that are computed with 4 observations.&amp;nbsp; I have several by groups so it is not that easy to just delete them.&amp;nbsp;Is there a way to tell proc expand not to include them or an easy way to delete when you have many by groups. Thanks. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 04:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/moving-statistics-with-proc-expand/m-p/449850#M3055</guid>
      <dc:creator>proctice</dc:creator>
      <dc:date>2018-03-30T04:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: moving statistics with proc expand</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/moving-statistics-with-proc-expand/m-p/449944#M3056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can&amp;nbsp;add the TRIMLEFT 3&amp;nbsp;operand after the MOVSUM 4 specification in your CONVERT statement to set the first 3 moving sum values within each BY group to missing.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;convert x=movsum_x / transform=(movsum 4 trimleft 3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;DW&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 14:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/moving-statistics-with-proc-expand/m-p/449944#M3056</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2018-03-30T14:40:39Z</dc:date>
    </item>
  </channel>
</rss>

