<?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: Freqs and means in same table? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36133#M5194</link>
    <description>I figured it out - a matter of adding another set of parentheses to account for the percentages and also the mean score. Thank you so much Olivier!</description>
    <pubDate>Tue, 05 Aug 2008 18:34:34 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-08-05T18:34:34Z</dc:date>
    <item>
      <title>Freqs and means in same table?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36130#M5191</link>
      <description>Hello~ Is it possible to have both frequencies and means in the same table?&lt;BR /&gt;
&lt;BR /&gt;
Specifically, I want to show the frequencies for a 5-point scale over several waves of data, with the mean reported in the bottom row. I have not found any code that would allow both to be generated in the same table. Any help would be great appreciated!</description>
      <pubDate>Tue, 05 Aug 2008 12:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36130#M5191</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-05T12:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Freqs and means in same table?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36131#M5192</link>
      <description>Does this look like what you want ? Once again, this is just playing with punctuation in the TABLE statement : comma stands for separating lines and columns, space stands for contiguous information, and star stands for "within".&lt;BR /&gt;
[pre]PROC TABULATE DATA = sashelp.class ;&lt;BR /&gt;
	CLASS sex age ;&lt;BR /&gt;
	VAR weight ;&lt;BR /&gt;
	TABLE (age*N weight*MEAN),sex ;&lt;BR /&gt;
RUN ;[/pre]&lt;BR /&gt;
If the bottom row is for "age mean" in the example, you need to duplicate the age variable -- a variable cannot be CLASS and VAR at the same time.&lt;BR /&gt;
[pre]DATA work.class ;&lt;BR /&gt;
	SET sashelp.class ;&lt;BR /&gt;
	age2 = age ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC TABULATE DATA = work.class ;&lt;BR /&gt;
	CLASS sex age ;&lt;BR /&gt;
	VAR age2 ;&lt;BR /&gt;
	TABLE (age*N="" age2="Mean age"*MEAN=""),sex ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Olivier</description>
      <pubDate>Tue, 05 Aug 2008 13:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36131#M5192</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-08-05T13:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Freqs and means in same table?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36132#M5193</link>
      <description>Thanks again for your quick reply. I found it very helpful, and I am close to generating the table I want, but am still unable to incorportate percentages into the table, with a mean score in the bottom row. (I should have been clearer in my original post.) &lt;BR /&gt;
&lt;BR /&gt;
Here's the code I'm trying to manipulate, but SAS is saying "PctN base in not in table. A PctN crossing has no denominator":&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=mvr.ready_08_6Jun(where=(wave ge 230)) format=9.1 noseps formchar(1,8,2,3,4,5,6,7,9,10,11)='||----|+|---'; &lt;BR /&gt;
	title 'Table 1';&lt;BR /&gt;
	format wave wave. q1 sat. total total.;&lt;BR /&gt;
	class wave q1 total; &lt;BR /&gt;
	var mq1;&lt;BR /&gt;
	table (q1*N*f=4.0 f=p8r6.0*pctn&lt;Q1 total=""&gt; mq1="Mean"*mean=' '),wave/rts=35&lt;BR /&gt;
		  box="Table 1. OVERALL SATISFACTION" misstext=' ';;&lt;BR /&gt;
	keylabel pctn = "(%)"; 	&lt;BR /&gt;
run;&lt;/Q1&gt;</description>
      <pubDate>Tue, 05 Aug 2008 18:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36132#M5193</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-05T18:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Freqs and means in same table?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36133#M5194</link>
      <description>I figured it out - a matter of adding another set of parentheses to account for the percentages and also the mean score. Thank you so much Olivier!</description>
      <pubDate>Tue, 05 Aug 2008 18:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Freqs-and-means-in-same-table/m-p/36133#M5194</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-05T18:34:34Z</dc:date>
    </item>
  </channel>
</rss>

