<?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 SURVEYMEANS not showing grand totals in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336432#M17740</link>
    <description>&lt;P&gt;If you have neither a CLASS or BY statement wouldn't that be for all PROV?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to include it in the STRATA or CLUSTEr statement but I don't know the specifics of the experimental design.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using a StatCan product the documentation usually has examples on how to write SAS code correctly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 04:28:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-02-28T04:28:48Z</dc:date>
    <item>
      <title>PROC SURVEYMEANS not showing grand totals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336430#M17739</link>
      <description>&lt;P&gt;I've been trying a few things, but I can't replicate what I do in regular proc means to produce the grand totals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code only outputs the statistics for each prov (but&amp;nbsp;NOT the grand total of all provs--which I&amp;nbsp;also need).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveymeans data=import1 clm nobs mean median CV SUMWGT varmethod=brr ;&lt;BR /&gt;var hrlyearn ;&lt;BR /&gt;by province ;&lt;BR /&gt;repweights bw1-bw1000;&lt;BR /&gt;ods output statistics=out;&lt;BR /&gt;weight finalwt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Putting 'province' as&amp;nbsp;CLASS&amp;nbsp;doesn't appear to do anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get grand total?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 03:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336430#M17739</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-02-28T03:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS not showing grand totals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336432#M17740</link>
      <description>&lt;P&gt;If you have neither a CLASS or BY statement wouldn't that be for all PROV?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to include it in the STRATA or CLUSTEr statement but I don't know the specifics of the experimental design.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using a StatCan product the documentation usually has examples on how to write SAS code correctly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 04:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336432#M17740</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-28T04:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS not showing grand totals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336435#M17741</link>
      <description>&lt;P&gt;DOMAIN seems to be doing it (can also cross two&amp;nbsp;subgroups). Still not giving me the grand total though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need something like ALL in proc tabulate..&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 04:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336435#M17741</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-02-28T04:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS not showing grand totals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336437#M17742</link>
      <description>&lt;P&gt;I attached a photo of the output from this, using DOMAIN. But&amp;nbsp;I still can't get the grand totals for each group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveymeans data=import1 clm nobs mean median CV SUMWGT varmethod=brr ;&lt;BR /&gt;var hrlyearn ;&lt;BR /&gt;domain prov*sex;&lt;BR /&gt;cluster prov;&lt;BR /&gt;repweights bw1-bw10;&lt;BR /&gt;ods output statistics=means Domain=domain ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note this data is&amp;nbsp;not actual counts of anything (just a made up dataset to try and get the syntax working).&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13499i3E109697DEA1A2D0/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;</description>
      <pubDate>Tue, 28 Feb 2017 04:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYMEANS-not-showing-grand-totals/m-p/336437#M17742</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-02-28T04:49:40Z</dc:date>
    </item>
  </channel>
</rss>

