<?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 expand: How to skip the most recent obs. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-expand-How-to-skip-the-most-recent-obs/m-p/312936#M269919</link>
    <description>&lt;P&gt;Better late than never?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT color="#ff0000" face="Sasfont"&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color="#0000ff"&gt;convert&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt; high=high1 / transformin=(lag &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Sasfont"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Sasfont"&gt;) &lt;FONT color="#0000ff"&gt;transformout=(movmax&lt;/FONT&gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Sasfont"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Sasfont"&gt; trimleft &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Sasfont"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Sasfont"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This makes the current value of high tied with the preceding, so max over 12 obs, is the same as max over preceding 11 obs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2016 22:29:51 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2016-11-20T22:29:51Z</dc:date>
    <item>
      <title>Proc expand: How to skip the most recent obs.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-expand-How-to-skip-the-most-recent-obs/m-p/286559#M269918</link>
      <description>&lt;P&gt;proc expand data=XXX&amp;nbsp;out=XXX method=none;&lt;BR /&gt;by AAA;&lt;BR /&gt;convert high = high1&amp;nbsp;/ transformin=(movmax 12 trimleft 10);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get the Maxmium obs from the most recent 12 obs in the moving windows. But I want to skip the most recent 1 observation. In fact I use 1-11st obs, while skipping 12st obs. How to code it?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2016 11:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-expand-How-to-skip-the-most-recent-obs/m-p/286559#M269918</guid>
      <dc:creator>ZZB</dc:creator>
      <dc:date>2016-07-23T11:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc expand: How to skip the most recent obs.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-expand-How-to-skip-the-most-recent-obs/m-p/312936#M269919</link>
      <description>&lt;P&gt;Better late than never?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT color="#ff0000" face="Sasfont"&gt;&amp;nbsp;&amp;nbsp; &lt;FONT color="#0000ff"&gt;convert&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Sasfont"&gt; high=high1 / transformin=(lag &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Sasfont"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Sasfont"&gt;) &lt;FONT color="#0000ff"&gt;transformout=(movmax&lt;/FONT&gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Sasfont"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Sasfont"&gt; trimleft &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Sasfont"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Sasfont"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This makes the current value of high tied with the preceding, so max over 12 obs, is the same as max over preceding 11 obs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 22:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-expand-How-to-skip-the-most-recent-obs/m-p/312936#M269919</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2016-11-20T22:29:51Z</dc:date>
    </item>
  </channel>
</rss>

