<?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: PROC SUMMARY concerning order. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SUMMARY-concerning-order/m-p/41325#M10682</link>
    <description>Consider this SAS documentation reference on MEANS/SUMMARY:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146737.htm#a000438726" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146737.htm#a000438726&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Also, I'm convinced you could answer some of these questions by observing the SAS system execution - consider using the SASHELP.CLASS file if none is available.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks,Inc.</description>
    <pubDate>Fri, 15 Jan 2010 13:30:58 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-01-15T13:30:58Z</dc:date>
    <item>
      <title>PROC SUMMARY concerning order.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SUMMARY-concerning-order/m-p/41323#M10680</link>
      <description>A data set, POPULATION, with 2 variables: COUNTRY(=any of 50 countries) and GENDER={F, M}.&lt;BR /&gt;
&lt;BR /&gt;
My code:&lt;BR /&gt;
&lt;BR /&gt;
proc summary data=population nway order=freq;&lt;BR /&gt;
class country gender;&lt;BR /&gt;
output out=outpop(drop=_type_);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Is it the total number of people (F+M) that gives the order in data set OUTPOP?&lt;BR /&gt;
&lt;BR /&gt;
E.g. If there were only 3 countries X, Y, Z: Country X with 1 M and 100 000 F, country Y with 90 000 M and 10 000 F, country Z with 50 000 M and 50 000 F, then will the order be:&lt;BR /&gt;
&lt;BR /&gt;
Country Gender _FREQ_&lt;BR /&gt;
X F 100000&lt;BR /&gt;
X M 1&lt;BR /&gt;
Y F 10000&lt;BR /&gt;
Y M 90000&lt;BR /&gt;
Z F 50000&lt;BR /&gt;
Z M 50000&lt;BR /&gt;
&lt;BR /&gt;
Q1: Is it the total number of persons in each country that decides the ordering?&lt;BR /&gt;
&lt;BR /&gt;
Q2: Will each countrys two records always be kept together regardless of the numbers of different genders?&lt;BR /&gt;
&lt;BR /&gt;
Q3: Y and Z have both total 100000. Is country Y positioned before country Z because Y comes before Z in the alphabet?&lt;BR /&gt;
&lt;BR /&gt;
Q4: And are females always positioned before men because F comes before M in the alphabet, regardless of the number of individual persons?</description>
      <pubDate>Fri, 15 Jan 2010 12:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SUMMARY-concerning-order/m-p/41323#M10680</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-15T12:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SUMMARY concerning order.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SUMMARY-concerning-order/m-p/41324#M10681</link>
      <description>Q1: No, the order depends on the class-variables natural order.&lt;BR /&gt;
Q2: Yes.&lt;BR /&gt;
Q3: Yes.&lt;BR /&gt;
Q4: Yes.</description>
      <pubDate>Fri, 15 Jan 2010 13:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SUMMARY-concerning-order/m-p/41324#M10681</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2010-01-15T13:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SUMMARY concerning order.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SUMMARY-concerning-order/m-p/41325#M10682</link>
      <description>Consider this SAS documentation reference on MEANS/SUMMARY:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146737.htm#a000438726" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146737.htm#a000438726&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Also, I'm convinced you could answer some of these questions by observing the SAS system execution - consider using the SASHELP.CLASS file if none is available.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks,Inc.</description>
      <pubDate>Fri, 15 Jan 2010 13:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SUMMARY-concerning-order/m-p/41325#M10682</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-15T13:30:58Z</dc:date>
    </item>
  </channel>
</rss>

