<?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 tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate/m-p/770940#M81064</link>
    <description>See page 4 / Example 3 here&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug11/cc/cc29.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug11/cc/cc29.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PRELOADFMT or COMPLETETYPES are the terms that you can google with PROC TABULATE.</description>
    <pubDate>Tue, 28 Sep 2021 16:22:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-09-28T16:22:51Z</dc:date>
    <item>
      <title>Proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate/m-p/770938#M81063</link>
      <description>&lt;P&gt;Is there a way to add a column variable in proc tabulate that is not on the raw data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a gender categories of Female, Male and Unknown.&amp;nbsp; I would like to display the Unknown column and it is not on my raw data.&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 16:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate/m-p/770938#M81063</guid>
      <dc:creator>gstover</dc:creator>
      <dc:date>2021-09-28T16:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate/m-p/770940#M81064</link>
      <description>See page 4 / Example 3 here&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/nesug/nesug11/cc/cc29.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug11/cc/cc29.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PRELOADFMT or COMPLETETYPES are the terms that you can google with PROC TABULATE.</description>
      <pubDate>Tue, 28 Sep 2021 16:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate/m-p/770940#M81064</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-28T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate/m-p/770947#M81065</link>
      <description>&lt;P&gt;If your&amp;nbsp; "unknown" means that the variable that holds gender has the value missing then one way is to do three things assuming this is used as a Class variable:&lt;/P&gt;
&lt;P&gt;1) on the Class statement add the MISSING option so missing is included in the report. This would look like:&lt;/P&gt;
&lt;PRE&gt;Class gender / missing;&lt;/PRE&gt;
&lt;P&gt;2) create a format that displays missing values as "Unknown"&lt;/P&gt;
&lt;P&gt;3) associate the format with the variable with a format statement.&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;PRE&gt;proc format;
value $missgender
' ' = 'Unknown'
;
run;

data example;
   input gender $ varx;
datalines;
Female  123
Male    456
.       111
;

proc tabulate data=example;
   class gender/missing;
   format gender $missgender.;
   var varx;
   table gender,
         varx*mean
   ;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Sep 2021 16:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate/m-p/770947#M81065</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-28T16:46:53Z</dc:date>
    </item>
  </channel>
</rss>

