<?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 ORDER=DATA option in PROC FREQ in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/ORDER-DATA-option-in-PROC-FREQ/m-p/657944#M31500</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SAS University edition and I found ORDER=DATA option doesn't work for this program and dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data trend;&lt;BR /&gt;input x y n;&lt;BR /&gt;cards;&lt;BR /&gt;1 1 0&lt;BR /&gt;1 0 5&lt;BR /&gt;2 1 3&lt;BR /&gt;2 0 3&lt;BR /&gt;3 1 0&lt;BR /&gt;3 0 1&lt;BR /&gt;;&lt;BR /&gt;proc freq order=data; weight n;&lt;BR /&gt;tables x*y/chisq nocol nopercent measures;&lt;BR /&gt;Exact trend;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when n is different from 0 for the very first cell it works. This order is important because the exact trend is base on the first column/row. Please suggest how to make ORDER = DATA option works irrespective of the data.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S_pera&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2020 07:19:31 GMT</pubDate>
    <dc:creator>S_pera</dc:creator>
    <dc:date>2020-06-12T07:19:31Z</dc:date>
    <item>
      <title>ORDER=DATA option in PROC FREQ</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ORDER-DATA-option-in-PROC-FREQ/m-p/657944#M31500</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SAS University edition and I found ORDER=DATA option doesn't work for this program and dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data trend;&lt;BR /&gt;input x y n;&lt;BR /&gt;cards;&lt;BR /&gt;1 1 0&lt;BR /&gt;1 0 5&lt;BR /&gt;2 1 3&lt;BR /&gt;2 0 3&lt;BR /&gt;3 1 0&lt;BR /&gt;3 0 1&lt;BR /&gt;;&lt;BR /&gt;proc freq order=data; weight n;&lt;BR /&gt;tables x*y/chisq nocol nopercent measures;&lt;BR /&gt;Exact trend;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when n is different from 0 for the very first cell it works. This order is important because the exact trend is base on the first column/row. Please suggest how to make ORDER = DATA option works irrespective of the data.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S_pera&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 07:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ORDER-DATA-option-in-PROC-FREQ/m-p/657944#M31500</guid>
      <dc:creator>S_pera</dc:creator>
      <dc:date>2020-06-12T07:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER=DATA option in PROC FREQ</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ORDER-DATA-option-in-PROC-FREQ/m-p/657957#M31501</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/333417"&gt;@S_pera&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;You need to add the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_freq_syntax13.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.freq.freqzeros" target="_blank" rel="noopener"&gt;ZEROS option&lt;/A&gt; of the WEIGHT statement. Otherwise zero-weight&amp;nbsp;&lt;SPAN&gt;observations are ignored.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;weight n &lt;STRONG&gt;/ zeros&lt;/STRONG&gt;;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jun 2020 08:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ORDER-DATA-option-in-PROC-FREQ/m-p/657957#M31501</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-06-12T08:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER=DATA option in PROC FREQ</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ORDER-DATA-option-in-PROC-FREQ/m-p/657968#M31502</link>
      <description>Thank you very much.&lt;BR /&gt;&lt;BR /&gt;S_pera</description>
      <pubDate>Fri, 12 Jun 2020 09:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ORDER-DATA-option-in-PROC-FREQ/m-p/657968#M31502</guid>
      <dc:creator>S_pera</dc:creator>
      <dc:date>2020-06-12T09:13:31Z</dc:date>
    </item>
  </channel>
</rss>

