<?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 Formatting 2X2 Crosstabulation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-2X2-Crosstabulation/m-p/164187#M42577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking for a way to format the following output so that the column percents show up with zero decimal places:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data = CombineScoredTemp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables _node_ * Bin_SLR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /nopercent norow nofreq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I could copy &amp;amp; paste it into Excel. Then format it. Then I would want more decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a way to output these column percents so that a % shows up with the numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 15:26:55 GMT</pubDate>
    <dc:creator>Zachary</dc:creator>
    <dc:date>2014-12-29T15:26:55Z</dc:date>
    <item>
      <title>Formatting 2X2 Crosstabulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-2X2-Crosstabulation/m-p/164187#M42577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking for a way to format the following output so that the column percents show up with zero decimal places:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data = CombineScoredTemp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables _node_ * Bin_SLR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /nopercent norow nofreq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I could copy &amp;amp; paste it into Excel. Then format it. Then I would want more decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a way to output these column percents so that a % shows up with the numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 15:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-2X2-Crosstabulation/m-p/164187#M42577</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2014-12-29T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting 2X2 Crosstabulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-2X2-Crosstabulation/m-p/164188#M42578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider using Proc TABULATE insted which gives you many more formating options than Proc FREQ.&lt;/P&gt;&lt;P&gt;Compare the reports produced by the following two sample codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using Proc FREQ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables age*sex / nopercent norow nofreq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Using Proc FORMAT ans Proc TABULATE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; picture pctfmt low-high='009.99 %';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc tabulate data=sashelp.class format=10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class age sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp; table age all , sex*colpctn*F=pctfmt10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylabel all='Total' colpctn='Col Pct';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SASReport.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8562_SASReport.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CTorres&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 16:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-2X2-Crosstabulation/m-p/164188#M42578</guid>
      <dc:creator>CTorres</dc:creator>
      <dc:date>2014-12-29T16:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting 2X2 Crosstabulation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-2X2-Crosstabulation/m-p/164189#M42579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for introducing me to proc tabulate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The website that has proven to be most helpful is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/258-30.pdf" title="http://www2.sas.com/proceedings/sugi30/258-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/258-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 18:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-2X2-Crosstabulation/m-p/164189#M42579</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2014-12-29T18:06:05Z</dc:date>
    </item>
  </channel>
</rss>

