<?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 ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237679#M14796</link>
    <description>&lt;P&gt;hi Reeza,&lt;/P&gt;&lt;P&gt;i think i figured it out, i ran a means within the table statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; data = test&amp;nbsp;out = test1; by procedure1;&lt;/P&gt;&lt;P&gt;var par1 par2....;&lt;/P&gt;&lt;P&gt;class&amp;nbsp;type sub_type;&lt;/P&gt;&lt;P&gt;table all*n (&lt;SPAN&gt;par1 par2&lt;/SPAN&gt; ) *mean = '' *f=pct100fmt.&lt;/P&gt;&lt;P&gt;, type&amp;nbsp;= '' * sub_type= ''&amp;nbsp; /nocellmerge;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="line-height: 20px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 19:34:23 GMT</pubDate>
    <dc:creator>yadalsa</dc:creator>
    <dc:date>2015-12-03T19:34:23Z</dc:date>
    <item>
      <title>Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237519#M14780</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Iam using Proc Report for creating a table. I have created a small dataset. i have 4 levels of a variable (L,P,S,W) and then sub_types within each level&lt;/P&gt;&lt;P&gt;O,V,U&lt;/P&gt;&lt;P&gt;the desired output is attached. Iam trying to find frequencies of only the 1's, Iam not interested in the 0's&lt;/P&gt;&lt;P&gt;Also, is there a way to output the data in a desired fashion, for eg.,&lt;/P&gt;&lt;P&gt;i want par6, par7 and part8 to be followed by part1 etc.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 03:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237519#M14780</guid>
      <dc:creator>yadalsa</dc:creator>
      <dc:date>2015-12-03T03:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237522#M14782</link>
      <description>You should post some sample data in addition. Also, please don't double post your question to multiple forums. &lt;BR /&gt;&lt;BR /&gt;You won't get a dataset in that fashion, but you will get output displayed in that manner. Please clarify which is your desired output, I'm assuming the display since you can't have multiple headers for variables.</description>
      <pubDate>Thu, 03 Dec 2015 04:01:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237522#M14782</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-03T04:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237567#M14786</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;I created a dataset and an output but i was not able to post 2 spreadsheets. i have the dataset and the output in one spreadsheet in different tabs. Hopefully this should give us a better picture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237567#M14786</guid>
      <dc:creator>yadalsa</dc:creator>
      <dc:date>2015-12-03T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237582#M14787</link>
      <description>&lt;P&gt;When you have a variable that is always 0 or 1, change the approach. &amp;nbsp;To get a single statistic per variable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the frequencies of the "1" values, get the sum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the percentage of "1" values, get the mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have to adjust your computations, if your variable could take on other values, such as a missing value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 13:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237582#M14787</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-12-03T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237595#M14789</link>
      <description>1. As mentioned, when you have 0/1 you can sum&lt;BR /&gt;2.To control order you need to create a variable that corresponds to the order and then use that to control the order. &lt;BR /&gt;3. You didn't answer the question - do you need this as output or a dataset?</description>
      <pubDate>Thu, 03 Dec 2015 15:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237595#M14789</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-03T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237678#M14795</link>
      <description>&lt;P&gt;Thank You very much.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 19:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237678#M14795</guid>
      <dc:creator>yadalsa</dc:creator>
      <dc:date>2015-12-03T19:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237679#M14796</link>
      <description>&lt;P&gt;hi Reeza,&lt;/P&gt;&lt;P&gt;i think i figured it out, i ran a means within the table statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; data = test&amp;nbsp;out = test1; by procedure1;&lt;/P&gt;&lt;P&gt;var par1 par2....;&lt;/P&gt;&lt;P&gt;class&amp;nbsp;type sub_type;&lt;/P&gt;&lt;P&gt;table all*n (&lt;SPAN&gt;par1 par2&lt;/SPAN&gt; ) *mean = '' *f=pct100fmt.&lt;/P&gt;&lt;P&gt;, type&amp;nbsp;= '' * sub_type= ''&amp;nbsp; /nocellmerge;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="line-height: 20px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 19:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237679#M14796</guid>
      <dc:creator>yadalsa</dc:creator>
      <dc:date>2015-12-03T19:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237686#M14798</link>
      <description>Yay! Glad to see it worked for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 03 Dec 2015 20:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate/m-p/237686#M14798</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-03T20:03:32Z</dc:date>
    </item>
  </channel>
</rss>

