<?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: Divide sample into top quartile and bottom quartile by group in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/536471#M6627</link>
    <description>&lt;P&gt;I looked at the Proc Rank. But I am still confused how to create different dataset for each group since I am really new to this coding. Could you help me with some codes ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 13:29:38 GMT</pubDate>
    <dc:creator>Takdir</dc:creator>
    <dc:date>2019-02-18T13:29:38Z</dc:date>
    <item>
      <title>Divide sample into top quartile and bottom quartile by group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/535898#M6550</link>
      <description>&lt;P&gt;&lt;SPAN&gt;by each year, by each SIC, i want do divide this dataset into 2 dataset of top quartile and bottom quartile based on Qratio.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data firm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input YEAR SIC Qratio;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalines;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2009 1111 1.5&lt;BR /&gt;2009 1111 2.5&lt;BR /&gt;2009 1111 3.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2010 1111 2.7&lt;BR /&gt;2010 1111 3.7&lt;BR /&gt;2010 1111 4.7&lt;BR /&gt;2010 1111 5.7&lt;BR /&gt;2010 2222 6.7&lt;BR /&gt;2010 2222 7.7&lt;BR /&gt;2010 2222 8.7&lt;BR /&gt;2010 2222 9.7&lt;BR /&gt;2010 3333 10.7&lt;BR /&gt;2010 3333 11.7&lt;BR /&gt;2010 3333 12.7&lt;BR /&gt;2010 3333 13.7&lt;BR /&gt;2010 4444 14.7&lt;BR /&gt;2010 4444 15.7&lt;BR /&gt;2010 4444 16.7&lt;BR /&gt;2010 4444 17.7&lt;BR /&gt;2010 4444 18.7&lt;BR /&gt;2010 4444 19.7&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/535898#M6550</guid>
      <dc:creator>Takdir</dc:creator>
      <dc:date>2019-02-15T16:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Divide sample into top quartile and bottom quartile by group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/535909#M6553</link>
      <description>&lt;P&gt;Look at PROC RANK which will group your data based on quartiles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237471"&gt;@Takdir&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;by each year, by each SIC, i want do divide this dataset into 2 dataset of top quartile and bottom quartile based on Qratio.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data firm;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input YEAR SIC Qratio;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalines;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2009 1111 1.5&lt;BR /&gt;2009 1111 2.5&lt;BR /&gt;2009 1111 3.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 1111 4.5&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2009 2222 1.7&lt;BR /&gt;2010 1111 2.7&lt;BR /&gt;2010 1111 3.7&lt;BR /&gt;2010 1111 4.7&lt;BR /&gt;2010 1111 5.7&lt;BR /&gt;2010 2222 6.7&lt;BR /&gt;2010 2222 7.7&lt;BR /&gt;2010 2222 8.7&lt;BR /&gt;2010 2222 9.7&lt;BR /&gt;2010 3333 10.7&lt;BR /&gt;2010 3333 11.7&lt;BR /&gt;2010 3333 12.7&lt;BR /&gt;2010 3333 13.7&lt;BR /&gt;2010 4444 14.7&lt;BR /&gt;2010 4444 15.7&lt;BR /&gt;2010 4444 16.7&lt;BR /&gt;2010 4444 17.7&lt;BR /&gt;2010 4444 18.7&lt;BR /&gt;2010 4444 19.7&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/535909#M6553</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-15T16:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Divide sample into top quartile and bottom quartile by group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/536471#M6627</link>
      <description>&lt;P&gt;I looked at the Proc Rank. But I am still confused how to create different dataset for each group since I am really new to this coding. Could you help me with some codes ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 13:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/536471#M6627</guid>
      <dc:creator>Takdir</dc:creator>
      <dc:date>2019-02-18T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Divide sample into top quartile and bottom quartile by group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/536479#M6628</link>
      <description>&lt;P&gt;It's not a one-step process, it takes two steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC RANK with the option GROUPS=4 creates quartiles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you take the output data set and split the data into the upper and lower quartiles.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 13:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Divide-sample-into-top-quartile-and-bottom-quartile-by-group/m-p/536479#M6628</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-18T13:57:26Z</dc:date>
    </item>
  </channel>
</rss>

