<?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: how to reorder proc freq 2x2 tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-reorder-proc-freq-2x2-tables/m-p/816372#M322216</link>
    <description>&lt;P&gt;By default, PROC FREQ uses alphabetical order for character variables and numerical order for numeric variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want some other order, sort the data first using DESCENDING so now POSITIVE appears in the data set before NEGATIVE. Then use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have order=data;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Jun 2022 17:43:29 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-06-03T17:43:29Z</dc:date>
    <item>
      <title>how to reorder proc freq 2x2 tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reorder-proc-freq-2x2-tables/m-p/816371#M322215</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to reorder the proc freq output? Basically I want "Negative" to be located where "Positive" is and vice-versa (see screenshot) .&amp;nbsp; Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1654277889142.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71985iAE3ACED2284F949E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1654277889142.png" alt="HitmonTran_0-1654277889142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 17:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reorder-proc-freq-2x2-tables/m-p/816371#M322215</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-06-03T17:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to reorder proc freq 2x2 tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-reorder-proc-freq-2x2-tables/m-p/816372#M322216</link>
      <description>&lt;P&gt;By default, PROC FREQ uses alphabetical order for character variables and numerical order for numeric variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want some other order, sort the data first using DESCENDING so now POSITIVE appears in the data set before NEGATIVE. Then use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have order=data;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jun 2022 17:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-reorder-proc-freq-2x2-tables/m-p/816372#M322216</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-03T17:43:29Z</dc:date>
    </item>
  </channel>
</rss>

