<?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: How to add a total summary row to my proc means table that is organized by class in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-total-summary-row-to-my-proc-means-table-that-is/m-p/834184#M329816</link>
    <description>&lt;P&gt;Do you want a table or displayed output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some examples of both:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.cars stackodsoutput mean median mode stddev min max range ;
    ways 0 1;
	vars length;
	class make;
	title "Title";
	ods output summary = want1;
run;

proc print data=want1;
run; 

proc tabulate data=sashelp.cars out=want2;
class make;
var length;

table (all = 'Overall' make='') , length*(mean median mode stddev min max range);
run;

proc print data=want2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/434315"&gt;@ssryg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want to add a row at the bottom of this table with the mean for stop_length for all cases, so that it is easy to compare the overall mean with the means by class. How can I add a final summary row to this table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;proc means data=DATA stackodsoutput mean median mode stddev min max range ;&lt;BR /&gt;	vars Stop_Length;&lt;BR /&gt;	class TSOutcomeofStop;&lt;BR /&gt;	title "Title";&lt;BR /&gt;run; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 22:27:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-09-19T22:27:55Z</dc:date>
    <item>
      <title>How to add a total summary row to my proc means table that is organized by class</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-total-summary-row-to-my-proc-means-table-that-is/m-p/834183#M329815</link>
      <description>&lt;P&gt;I want to add a row at the bottom of this table with the mean for stop_length for all cases, so that it is easy to compare the overall mean with the means by class. How can I add a final summary row to this table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;proc means data=DATA stackodsoutput mean median mode stddev min max range ;&lt;BR /&gt;	vars Stop_Length;&lt;BR /&gt;	class TSOutcomeofStop;&lt;BR /&gt;	title "Title";&lt;BR /&gt;run; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 22:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-total-summary-row-to-my-proc-means-table-that-is/m-p/834183#M329815</guid>
      <dc:creator>ssryg</dc:creator>
      <dc:date>2022-09-19T22:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a total summary row to my proc means table that is organized by class</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-total-summary-row-to-my-proc-means-table-that-is/m-p/834184#M329816</link>
      <description>&lt;P&gt;Do you want a table or displayed output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some examples of both:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.cars stackodsoutput mean median mode stddev min max range ;
    ways 0 1;
	vars length;
	class make;
	title "Title";
	ods output summary = want1;
run;

proc print data=want1;
run; 

proc tabulate data=sashelp.cars out=want2;
class make;
var length;

table (all = 'Overall' make='') , length*(mean median mode stddev min max range);
run;

proc print data=want2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/434315"&gt;@ssryg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want to add a row at the bottom of this table with the mean for stop_length for all cases, so that it is easy to compare the overall mean with the means by class. How can I add a final summary row to this table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;proc means data=DATA stackodsoutput mean median mode stddev min max range ;&lt;BR /&gt;	vars Stop_Length;&lt;BR /&gt;	class TSOutcomeofStop;&lt;BR /&gt;	title "Title";&lt;BR /&gt;run; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 22:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-total-summary-row-to-my-proc-means-table-that-is/m-p/834184#M329816</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-19T22:27:55Z</dc:date>
    </item>
  </channel>
</rss>

