<?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 Quintiles for Income in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489828#M127982</link>
    <description>Thank you!&lt;BR /&gt;</description>
    <pubDate>Sat, 25 Aug 2018 15:19:22 GMT</pubDate>
    <dc:creator>MegLurtz</dc:creator>
    <dc:date>2018-08-25T15:19:22Z</dc:date>
    <item>
      <title>Creating Quintiles for Income</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489822#M127978</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to organize an income variable into quintiles. I understand that proc univariate will show me 1%, 5%, 25%, 50%, ect., but I need to see the break points for 20%, 40%, 60% and 80% and I am just not sure what to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have messed around with proc rank, but I can't get it to give me output so that I can see that, for example, if I want to look at 0 to X dollars is the first 20% of income, then 20 to 40, 40 to 60, and 60 to 80 and then 80 on up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially turning a continuous variable into a categorical one, but I don't know where to set the breaks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 14:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489822#M127978</guid>
      <dc:creator>MegLurtz</dc:creator>
      <dc:date>2018-08-25T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Quintiles for Income</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489827#M127981</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/228351"&gt;@MegLurtz&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/?docsetId=procstat&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=procstat_univariate_syntax21.htm&amp;amp;locale=en" target="_blank"&gt;OUTPUT statement&lt;/A&gt; of PROC UNIVARIATE has options PCTLPTS= and PCTLPRE= where you can specify and name percentiles of your choice, e.g. &lt;FONT face="courier new,courier"&gt;20 to 80 by 20&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since P20, P40, P60 and P80 are fairly common percentiles, they are also available in PROC MEANS/PROC SUMMARY: see the list of "&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1qnc9bddfvhzqn105kqitnf29cp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n11nn4xu6p9wvjn1lh60wtvvn538" target="_blank"&gt;statistic-keywords&lt;/A&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have min p20 p40 p60 p80 max;
var income;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2018 15:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489827#M127981</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-08-25T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Quintiles for Income</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489828#M127982</link>
      <description>Thank you!&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Aug 2018 15:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489828#M127982</guid>
      <dc:creator>MegLurtz</dc:creator>
      <dc:date>2018-08-25T15:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Quintiles for Income</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489840#M127989</link>
      <description>&lt;P&gt;PROC RANK will create the categorical variable for you, though not the dummies. Depending on the PROC you're using next, it may or may not need dummy variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rank data=have out=want groups=5;
var income;
rank rank_income;
run;

proc print data=want;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2018 18:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Quintiles-for-Income/m-p/489840#M127989</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-25T18:50:43Z</dc:date>
    </item>
  </channel>
</rss>

