<?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 dummy variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263132#M51487</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
   set sashelp.class;
   sexdummy = sex eq 'F';
   sexdumm2 = sexdummy;
   run;
proc tabulate;
   var sexdummy sexdumm2;
   tables (sexdummy sexdumm2)*(sum='Count'*f=f8. n='Denom'*f=f8. mean='Percent'*f=percentn.);
   label sexdummy='Gender';
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Apr 2016 10:40:56 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2016-04-12T10:40:56Z</dc:date>
    <item>
      <title>proc tabulate dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263080#M51480</link>
      <description>&lt;P&gt;Hi all, I have 5 dummy variables coded 1- Yes 0-No&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;there a way&amp;nbsp;proc to tabulate dummy variables just to display the" Yes" categories &amp;nbsp; and also the total (sum of&amp;nbsp;&amp;nbsp;both yes and No) for for each variable.&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 03:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263080#M51480</guid>
      <dc:creator>archibald</dc:creator>
      <dc:date>2016-04-12T03:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263083#M51481</link>
      <description>&lt;P&gt;No. But if it's coded as 0/1 perhaps you can use proc means to get the summary you want?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;N = count of obs&lt;/P&gt;
&lt;P&gt;Sum = num yes&lt;/P&gt;
&lt;P&gt;Mean = percent of yes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 03:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263083#M51481</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-12T03:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263117#M51486</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $fmt(multilabel)
 'F'='F'
 'F','M'='ALL';
run;

proc tabulate data=sashelp.class;
class sex/mlf ;
format sex $fmt.;
table sex*n='';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Apr 2016 08:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263117#M51486</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-12T08:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263132#M51487</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
   set sashelp.class;
   sexdummy = sex eq 'F';
   sexdumm2 = sexdummy;
   run;
proc tabulate;
   var sexdummy sexdumm2;
   tables (sexdummy sexdumm2)*(sum='Count'*f=f8. n='Denom'*f=f8. mean='Percent'*f=percentn.);
   label sexdummy='Gender';
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Apr 2016 10:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263132#M51487</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-12T10:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate dummy variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263245#M51506</link>
      <description>&lt;P&gt;Provide some example data and what you want the result to look like.&lt;/P&gt;
&lt;P&gt;When you say "&amp;nbsp;and also the total (sum of&amp;nbsp;&amp;nbsp;both yes and No) for for each variable" for a variable coded 1/0 then all of the 0's always sum to 0 so there is likely some additional details that you are leaving out. I suspect you have some nesting levels that you are not specifying clearly.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-dummy-variable/m-p/263245#M51506</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-12T16:06:17Z</dc:date>
    </item>
  </channel>
</rss>

