<?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 FREQ How to generate a fixed size crosstab in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-How-to-generate-a-fixed-size-crosstab/m-p/720086#M223032</link>
    <description>thanks a lot</description>
    <pubDate>Thu, 18 Feb 2021 02:02:22 GMT</pubDate>
    <dc:creator>RorschachYoung</dc:creator>
    <dc:date>2021-02-18T02:02:22Z</dc:date>
    <item>
      <title>PROC FREQ How to generate a fixed size crosstab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-How-to-generate-a-fixed-size-crosstab/m-p/715167#M220880</link>
      <description>&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;input x y;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc freq data=a;&lt;/P&gt;&lt;P&gt;table x*y/out=out outpct;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;This procedure will generate a 1*1 crosstab ;&lt;/P&gt;&lt;P&gt;If the range of x is 1-4 and the range of y is 1-4,how can i generate a fixed 4*4 table counting the zero counts?&lt;/P&gt;&lt;P&gt;Thanks~~~&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 04:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-How-to-generate-a-fixed-size-crosstab/m-p/715167#M220880</guid>
      <dc:creator>RorschachYoung</dc:creator>
      <dc:date>2021-01-29T04:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ How to generate a fixed size crosstab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-How-to-generate-a-fixed-size-crosstab/m-p/715174#M220883</link>
      <description>&lt;P&gt;One way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to tell the procedure that these values exist.&lt;/P&gt;
&lt;P&gt;=&amp;gt; Add the corresponding records to the data,with a value of zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You then have to tell&amp;nbsp;the procedure that these values must be used.&lt;/P&gt;
&lt;P&gt;=&amp;gt; Add a WEIGHT variable and use the WEIGHT statement with the ZEROS option..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 23:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-How-to-generate-a-fixed-size-crosstab/m-p/715174#M220883</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-01T23:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ How to generate a fixed size crosstab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-How-to-generate-a-fixed-size-crosstab/m-p/720086#M223032</link>
      <description>thanks a lot</description>
      <pubDate>Thu, 18 Feb 2021 02:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FREQ-How-to-generate-a-fixed-size-crosstab/m-p/720086#M223032</guid>
      <dc:creator>RorschachYoung</dc:creator>
      <dc:date>2021-02-18T02:02:22Z</dc:date>
    </item>
  </channel>
</rss>

