<?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: Creating a subgroup and finding the deciles of the remaining observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680732#M205797</link>
    <description>VARA = 1 and VarA = 2, you mean OR I assume?&lt;BR /&gt;&lt;BR /&gt;proc univariate data=have ;&lt;BR /&gt;where vara in (1,2);&lt;BR /&gt;var ida;&lt;BR /&gt;output out=deciles pctlpre = P_ pctlpts=0 to 100 by 10;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/faq/how-do-i-obtain-percentiles-not-automatically-calculated/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/faq/how-do-i-obtain-percentiles-not-automatically-calculated/&lt;/A&gt;&lt;BR /&gt;run;</description>
    <pubDate>Tue, 01 Sep 2020 15:53:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-09-01T15:53:36Z</dc:date>
    <item>
      <title>Creating a subgroup and finding the deciles of the remaining observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680723#M205790</link>
      <description>&lt;PRE&gt;Dear All:&lt;BR /&gt;My data is as follows&lt;BR /&gt;&lt;BR /&gt;VarA          IDA
4                1
6                2
2                3
1                4
10              5
22              6
2                7
1                8
85              9
I want to create a subgroup when VARA = 1 and VarA = 2, name the subgroup
as Rank = 0 and then find find the deciles for the remaining values.&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ramdy&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680723#M205790</guid>
      <dc:creator>RandyStan</dc:creator>
      <dc:date>2020-09-01T15:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subgroup and finding the deciles of the remaining observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680732#M205797</link>
      <description>VARA = 1 and VarA = 2, you mean OR I assume?&lt;BR /&gt;&lt;BR /&gt;proc univariate data=have ;&lt;BR /&gt;where vara in (1,2);&lt;BR /&gt;var ida;&lt;BR /&gt;output out=deciles pctlpre = P_ pctlpts=0 to 100 by 10;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/faq/how-do-i-obtain-percentiles-not-automatically-calculated/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/faq/how-do-i-obtain-percentiles-not-automatically-calculated/&lt;/A&gt;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 01 Sep 2020 15:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680732#M205797</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-01T15:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subgroup and finding the deciles of the remaining observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680751#M205808</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I want to create a subgroup when VARA = 1 and VarA = 2, name the subgroup as Rank = 0 and then find find the deciles for the remaining values.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm really struggling to decipher this into something I could program. When you talk about "the remaining values", are these the values that are &lt;EM&gt;not&lt;/EM&gt; in RANK=0? Or are they the values of VARA=1 and VARA=2? Why the name RANK=0, this seems to imply something, but I can't figure it out. Is there also a RANK=1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show us the desired output from this small example?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 16:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680751#M205808</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-01T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subgroup and finding the deciles of the remaining observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680771#M205817</link>
      <description>&lt;P&gt;Paige -- Here is the intuition.&amp;nbsp; I have a column with a series of values.&amp;nbsp; I want to group them into deciles, but not include values of 1 or 2 into the decile grouping, keeping them as a separate group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if the values of VarA are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VARA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rank_A&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -1&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;6&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;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;9&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;14&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -1&lt;/P&gt;&lt;P&gt;66&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;/P&gt;&lt;P&gt;VARA = 1 OR VARA =2 always get a rank of say&amp;nbsp; ( -1 or 0 -- it does not matter) and the ranks are determined on the remaining values.&amp;nbsp; I hope that I am clearer -- I apologize for any confusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Randy&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 17:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680771#M205817</guid>
      <dc:creator>RandyStan</dc:creator>
      <dc:date>2020-09-01T17:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a subgroup and finding the deciles of the remaining observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680794#M205831</link>
      <description>proc rank data=have groups=10;&lt;BR /&gt;where vara not in (1,2);&lt;BR /&gt;var varA;&lt;BR /&gt;ranks rank_varA;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 01 Sep 2020 19:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-subgroup-and-finding-the-deciles-of-the-remaining/m-p/680794#M205831</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-01T19:01:22Z</dc:date>
    </item>
  </channel>
</rss>

