<?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: Tabulate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308073#M66056</link>
    <description>&lt;PRE&gt;
CODE NOT TESTED


proc tabulate data=combination;
class flavor culture;
var time;
table flavor*culture, time*mean ;
run;

&lt;/PRE&gt;</description>
    <pubDate>Sat, 29 Oct 2016 05:59:53 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-10-29T05:59:53Z</dc:date>
    <item>
      <title>Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308071#M66054</link>
      <description>&lt;P&gt;i want to use the tabulate procedure to display the average time for each flavor and culture combination. I am not able to get the average time for each. I have tried few steps... plz suggest how to tabulate to get desired results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Available data;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Obs &amp;nbsp; &amp;nbsp;flavor &amp;nbsp; &amp;nbsp; &amp;nbsp; culture &amp;nbsp; &amp;nbsp; &amp;nbsp; time&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blueberry L.acidophilus 1.25381&lt;BR /&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blueberry L.acidophilus 1.19350&lt;BR /&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plain &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;L.acidophilus 1.08703&lt;BR /&gt;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plain &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L.acidophilus 1.40896&lt;BR /&gt;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plain &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L.acidophilus 2.63547&lt;BR /&gt;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plain &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L.acidophilus 2.69992&lt;BR /&gt;7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strawberry L.acidophilus 3.01486&lt;BR /&gt;8 &amp;nbsp; &amp;nbsp; &amp;nbsp; strawberry L.acidophilus 3.35383&lt;BR /&gt;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; strawberry L.acidophilus 3.71758&lt;/P&gt;&lt;P&gt;10 &amp;nbsp; &amp;nbsp; strawberry L.acidophilus 3.38742&lt;BR /&gt;11 &amp;nbsp; &amp;nbsp; vanilla &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L.acidophilus 4.15288&lt;BR /&gt;12 &amp;nbsp; &amp;nbsp; vanilla &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L.acidophilus 4.34319&lt;/P&gt;&lt;P&gt;13 &amp;nbsp; &amp;nbsp; vanilla &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L.acidophilus 4.12448&lt;BR /&gt;14 &amp;nbsp; &amp;nbsp; blueberry &amp;nbsp; &amp;nbsp;B.bifidum 1.02099&lt;BR /&gt;15 &amp;nbsp; &amp;nbsp;blueberry &amp;nbsp; &amp;nbsp; B.bifidum 1.46241&lt;BR /&gt;16 &amp;nbsp; &amp;nbsp;blueberry &amp;nbsp; &amp;nbsp; B.bifidum 0.78172&lt;BR /&gt;17 &amp;nbsp; &amp;nbsp;plain &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B.bifidum 1.59875&lt;BR /&gt;18 &amp;nbsp; &amp;nbsp; plain &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.bifidum 1.72159&lt;BR /&gt;19 &amp;nbsp; &amp;nbsp;cherry &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.bifidum 2.38972&lt;BR /&gt;20 &amp;nbsp; &amp;nbsp;cherry &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.bifidum 2.27279&lt;BR /&gt;21 &amp;nbsp; &amp;nbsp;vanilla &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B.bifidum 3.17874&lt;BR /&gt;22 &amp;nbsp; &amp;nbsp;vanilla &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B.bifidum 3.06254&lt;BR /&gt;23 &amp;nbsp; &amp;nbsp;vanilla &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B.bifidum 3.20867&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc tabulate data=combination;&lt;BR /&gt;class flavor culture;&lt;BR /&gt;table flavor culture;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 05:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308071#M66054</guid>
      <dc:creator>azee007</dc:creator>
      <dc:date>2016-10-29T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308073#M66056</link>
      <description>&lt;PRE&gt;
CODE NOT TESTED


proc tabulate data=combination;
class flavor culture;
var time;
table flavor*culture, time*mean ;
run;

&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Oct 2016 05:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308073#M66056</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-29T05:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308079#M66059</link>
      <description>Thank you - I was not using the var statement... I thought table statement wld be enough -</description>
      <pubDate>Sat, 29 Oct 2016 06:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308079#M66059</guid>
      <dc:creator>azee007</dc:creator>
      <dc:date>2016-10-29T06:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308081#M66061</link>
      <description>Yeah. Same thing happened to me. Usually overlooked.</description>
      <pubDate>Sat, 29 Oct 2016 08:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308081#M66061</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-29T08:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308141#M66080</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Ksharp,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The table i wanted to create was cross-tabulation of the flavor and culture - so I wanted to have the flavors in the rows of the table and separate columns for the two cultures. This would create both the mean and row headers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The table created by the code below have only the statistic header for means.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Moreover, want also to control of the header labels -want to remove the summary statistic (mean) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and row variable headers from the table. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;plus the answers to 3 decimal places.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CAN YOU PLEASE GUIDE--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;proc tabulate data=yogurt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;class flavor culture;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;var time;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;table flavor*culture, time*mean ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="x_MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2016 15:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308141#M66080</guid>
      <dc:creator>azee007</dc:creator>
      <dc:date>2016-10-30T15:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308178#M66094</link>
      <description>&lt;PRE&gt;

data have;
infile cards expandtabs truncover;
input Obs    flavor  : $20.     culture : $20.   time;
cards;
1         blueberry L.acidophilus 1.25381
2         blueberry L.acidophilus 1.19350
3         plain        L.acidophilus 1.08703
4         plain         L.acidophilus 1.40896
5         plain         L.acidophilus 2.63547
6         plain         L.acidophilus 2.69992
7        strawberry L.acidophilus 3.01486
8       strawberry L.acidophilus 3.35383
9       strawberry L.acidophilus 3.71758
10     strawberry L.acidophilus 3.38742
11     vanilla         L.acidophilus 4.15288
12     vanilla         L.acidophilus 4.34319
13     vanilla         L.acidophilus 4.12448
14     blueberry    B.bifidum 1.02099
15    blueberry     B.bifidum 1.46241
16    blueberry     B.bifidum 0.78172
17    plain             B.bifidum 1.59875
18     plain            B.bifidum 1.72159
19    cherry          B.bifidum 2.38972
20    cherry          B.bifidum 2.27279
21    vanilla          B.bifidum 3.17874
22    vanilla         B.bifidum 3.06254
23    vanilla         B.bifidum 3.20867
;
run;

proc tabulate data=have;
class flavor culture;
var time;
table flavor='',culture*time=''*mean=''*f=f8.3 ;
run;
 


&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Oct 2016 02:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308178#M66094</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-31T02:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308191#M66101</link>
      <description>Thank you - now the code is exactly i was working on..I just wanted to know f=f8.3 - 8.3 i understood used for 3 decimal places.. But f=f is for format=flavour8.3?</description>
      <pubDate>Mon, 31 Oct 2016 05:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308191#M66101</guid>
      <dc:creator>azee007</dc:creator>
      <dc:date>2016-10-31T05:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308216#M66111</link>
      <description>Actually  f8.3  is the same as 8.3  . you can use 8.3 too .</description>
      <pubDate>Mon, 31 Oct 2016 09:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308216#M66111</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-31T09:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308286#M66134</link>
      <description>Noted with thanks.</description>
      <pubDate>Mon, 31 Oct 2016 14:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308286#M66134</guid>
      <dc:creator>azee007</dc:creator>
      <dc:date>2016-10-31T14:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308328#M66158</link>
      <description>&lt;P&gt;I tend to think of F8.3 as Fixed, 8 columns and 3 decimal places. I think that way because I've been involved with enough projects reading data with the F8.3 format where the decimals are IMPLIED and inserted at read. I also use the F habitually to make sure that I am using the intended format not z8.3 or something else.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tabulate/m-p/308328#M66158</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-31T17:14:05Z</dc:date>
    </item>
  </channel>
</rss>

