<?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 calculate low and high ranges of weeks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-low-and-high-ranges-of-weeks/m-p/369163#M88092</link>
    <description>&lt;P&gt;Proc means, summary or tabulate will do some form of this.&lt;/P&gt;
&lt;P&gt;How ever you are looking for MIN and MAX of some variable within a time frame. Range = Max-min, so "low range" makes no sense in standard terminology.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some thing like:&lt;/P&gt;
&lt;P&gt;proc means data=your data min max;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; class week;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nameofvartoreport;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 14:18:05 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-21T14:18:05Z</dc:date>
    <item>
      <title>how to calculate low and high ranges of weeks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-low-and-high-ranges-of-weeks/m-p/369085#M88060</link>
      <description>&lt;P&gt;I have a week variable and need to create lowrange and high range i.e duration of that week. Can anyone help me how to do it or hint on what function can be used. the below is a sample of result.&lt;/P&gt;
&lt;P&gt;week &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Lrange &amp;nbsp; &amp;nbsp; &amp;nbsp;Hrange&lt;/P&gt;
&lt;TABLE width="214"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="67"&gt;Week 0&lt;/TD&gt;
&lt;TD width="72"&gt;1&lt;/TD&gt;
&lt;TD width="75"&gt;27&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Week 4&lt;/TD&gt;
&lt;TD&gt;28&lt;/TD&gt;
&lt;TD&gt;55&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Week 8&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;83&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Week 12&lt;/TD&gt;
&lt;TD&gt;84&lt;/TD&gt;
&lt;TD&gt;125&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Week 18&lt;/TD&gt;
&lt;TD&gt;126&lt;/TD&gt;
&lt;TD&gt;167&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Week 24&lt;/TD&gt;
&lt;TD&gt;168&lt;/TD&gt;
&lt;TD&gt;174&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 21 Jun 2017 10:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-low-and-high-ranges-of-weeks/m-p/369085#M88060</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-06-21T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate low and high ranges of weeks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-low-and-high-ranges-of-weeks/m-p/369087#M88062</link>
      <description>&lt;P&gt;Once again, please follow the guidance by the post button. &amp;nbsp;Post test data in the form of a datastep, show what the output should look like, and explain the logic between them. &amp;nbsp;How can I can create an output based on data I cannot see? &amp;nbsp;Probably something like:&lt;/P&gt;
&lt;PRE&gt;select week,min(val) as lrange,max(val) as mrange from have group by week;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Jun 2017 10:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-low-and-high-ranges-of-weeks/m-p/369087#M88062</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-21T10:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate low and high ranges of weeks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-low-and-high-ranges-of-weeks/m-p/369163#M88092</link>
      <description>&lt;P&gt;Proc means, summary or tabulate will do some form of this.&lt;/P&gt;
&lt;P&gt;How ever you are looking for MIN and MAX of some variable within a time frame. Range = Max-min, so "low range" makes no sense in standard terminology.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some thing like:&lt;/P&gt;
&lt;P&gt;proc means data=your data min max;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; class week;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nameofvartoreport;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 14:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-low-and-high-ranges-of-weeks/m-p/369163#M88092</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-21T14:18:05Z</dc:date>
    </item>
  </channel>
</rss>

