<?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: A Proc Tabulate question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/A-Proc-Tabulate-question/m-p/127594#M34883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I see that your TABLE statement doesn't have any * (asterisk) operators. Also, you show health_status in the CLASS statement, but then use _status in the TABLE statement. Does your code even produce output? Do you have error messages in the LOG that _status is not defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can define special denominators for percents using the &amp;lt; and &amp;gt; operators. Generally, you use them in conjunction with nesting using the * operator. The TABULATE documentation has some examples of using a special denominator definition.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n1m5z9bzbggfson1wgywh01h8zlq.htm" title="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n1m5z9bzbggfson1wgywh01h8zlq.htm"&gt;Base SAS(R) 9.3 Procedures Guide, Second Edition&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jul 2013 19:40:38 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-07-06T19:40:38Z</dc:date>
    <item>
      <title>A Proc Tabulate question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Proc-Tabulate-question/m-p/127592#M34881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I grew to like using proc tabulate for output tables, but sometimes it's hard to follow the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say if I want to run a crosstab of health condition by sex (so column %) for each year and each country. I tried the following but it's giving me the column percent across all cases, not within a country and for each year. How do I change the? I didn't make a sample data but if needed, I could do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class country year heath_status sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table (country year _status), sex* COLPCTN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 19:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Proc-Tabulate-question/m-p/127592#M34881</guid>
      <dc:creator>Solph</dc:creator>
      <dc:date>2013-07-05T19:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: A Proc Tabulate question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Proc-Tabulate-question/m-p/127593#M34882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your data look like ? Maybe you need :&lt;/P&gt;&lt;P&gt;table (country year _status), sex* COLPCTN&amp;nbsp;&amp;nbsp; all*COLPCTN&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 01:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Proc-Tabulate-question/m-p/127593#M34882</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-07-06T01:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: A Proc Tabulate question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Proc-Tabulate-question/m-p/127594#M34883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I see that your TABLE statement doesn't have any * (asterisk) operators. Also, you show health_status in the CLASS statement, but then use _status in the TABLE statement. Does your code even produce output? Do you have error messages in the LOG that _status is not defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can define special denominators for percents using the &amp;lt; and &amp;gt; operators. Generally, you use them in conjunction with nesting using the * operator. The TABULATE documentation has some examples of using a special denominator definition.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n1m5z9bzbggfson1wgywh01h8zlq.htm" title="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n1m5z9bzbggfson1wgywh01h8zlq.htm"&gt;Base SAS(R) 9.3 Procedures Guide, Second Edition&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jul 2013 19:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Proc-Tabulate-question/m-p/127594#M34883</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-07-06T19:40:38Z</dc:date>
    </item>
  </channel>
</rss>

