<?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 means calculate percent from total in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564676#M158411</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select name,weight,weight/(select sum(weight) from sashelp.class) as percent format=percent8.2
 from sashelp.class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 08 Jun 2019 15:42:50 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-06-08T15:42:50Z</dc:date>
    <item>
      <title>Proc means calculate percent from total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564407#M158307</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;Is it possible to calculate percent from total in proc means ?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 08:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564407#M158307</guid>
      <dc:creator>shadowgun1102</dc:creator>
      <dc:date>2019-06-07T08:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc means calculate percent from total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564408#M158308</link>
      <description>&lt;P&gt;Afaik not, but i am to lazy to look in the docs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The docs can be found at &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=pgmsashome&amp;amp;docsetTarget=home.htm" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=pgmsashome&amp;amp;docsetTarget=home.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc tabulate can do this :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.class;
   class Sex;
   var Age;

   table Sex, Age*pctsum;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 08:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564408#M158308</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-06-07T08:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc means calculate percent from total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564482#M158349</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277045"&gt;@shadowgun1102&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone&lt;/P&gt;
&lt;P&gt;Is it possible to calculate percent from total in proc means ?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The exception to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;'s response&amp;nbsp;is a variable that is coded with only 1 and 0 values. The mean would be the "percent of 1's" for the records with values expressed in&amp;nbsp; decimal form: .456 as the mean would be equivalent to 45.6%.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564482#M158349</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-07T14:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc means calculate percent from total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564676#M158411</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select name,weight,weight/(select sum(weight) from sashelp.class) as percent format=percent8.2
 from sashelp.class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Jun 2019 15:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-means-calculate-percent-from-total/m-p/564676#M158411</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-08T15:42:50Z</dc:date>
    </item>
  </channel>
</rss>

