<?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: Grouping data by account number and calculating percentiles in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Grouping-data-by-account-number-and-calculating-percentiles/m-p/565364#M11174</link>
    <description>You're asking too many questions at once for starters. Break your problems down into steps. For a problem like this, I'd use this order:&lt;BR /&gt;&lt;BR /&gt;1) how to first calculate all the summary statistics 2) then how to identify my outliers &lt;BR /&gt;3) how to format the table to the appearance desired. &lt;BR /&gt;&lt;BR /&gt;PROC MEANS/SUMMARY is the right path. &lt;BR /&gt;&lt;BR /&gt;What does your code look like so far? We can't know if you're on the right path or in left field without the code. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Jun 2019 19:19:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-06-11T19:19:55Z</dc:date>
    <item>
      <title>Grouping data by account number and calculating percentiles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Grouping-data-by-account-number-and-calculating-percentiles/m-p/565247#M11162</link>
      <description>&lt;P&gt;I have data showing multiple payments from different accounts from 50 states.&amp;nbsp; I want to group all the payments by account number in a given state, find out the percentiles (p25, p75, IQR) and calculate the outliers (p75 + 1.5 X Interquartile Range [IQR]), calculate the total payments for each state, and calculate the percentage of payments above the outlier limit (sum of payments above limit / sum of total payments).&amp;nbsp; I have used a combination of DATA steps, PROC UNIVARIATE, PROC SQL, PROC COMPUTAB to get my desired results without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;State&amp;nbsp; &amp;nbsp; &amp;nbsp;Payment&amp;nbsp; &amp;nbsp; &amp;nbsp;Account#&lt;/P&gt;&lt;P&gt;NC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $400&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A123&lt;/P&gt;&lt;P&gt;NC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $320&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A123&lt;/P&gt;&lt;P&gt;OH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B234&lt;/P&gt;&lt;P&gt;OH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A145&lt;/P&gt;&lt;P&gt;OH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B234&lt;/P&gt;&lt;P&gt;OH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $225&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A145&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want this:&lt;/P&gt;&lt;P&gt;State&amp;nbsp; &amp;nbsp; &amp;nbsp; Total Payments&amp;nbsp; &amp;nbsp;p25&amp;nbsp; &amp;nbsp; &amp;nbsp; p75&amp;nbsp; &amp;nbsp;Outlier_Limit&amp;nbsp; &amp;nbsp; % of Payments above Outlier_Limit&lt;/P&gt;&lt;P&gt;NC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$620&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $20&amp;nbsp; &amp;nbsp; $300&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$720.00&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;2%&lt;/P&gt;&lt;P&gt;OH&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$405&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $15&amp;nbsp; &amp;nbsp; $180&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$427.50&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;4%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Note: I didn't actually calculate percentiles, outliers, or payment % for the above example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help and lead me on the correct path?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Grouping-data-by-account-number-and-calculating-percentiles/m-p/565247#M11162</guid>
      <dc:creator>benvar</dc:creator>
      <dc:date>2019-06-11T14:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping data by account number and calculating percentiles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Grouping-data-by-account-number-and-calculating-percentiles/m-p/565364#M11174</link>
      <description>You're asking too many questions at once for starters. Break your problems down into steps. For a problem like this, I'd use this order:&lt;BR /&gt;&lt;BR /&gt;1) how to first calculate all the summary statistics 2) then how to identify my outliers &lt;BR /&gt;3) how to format the table to the appearance desired. &lt;BR /&gt;&lt;BR /&gt;PROC MEANS/SUMMARY is the right path. &lt;BR /&gt;&lt;BR /&gt;What does your code look like so far? We can't know if you're on the right path or in left field without the code. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 19:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Grouping-data-by-account-number-and-calculating-percentiles/m-p/565364#M11174</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-11T19:19:55Z</dc:date>
    </item>
  </channel>
</rss>

