<?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: wt freq using PROC SUMMARY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611551#M178248</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have;
    class category;
    var wt score;
    output out=stats mean(score)=score_mean sum(wt)=wt_volume;
run;
     &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The variable _FREQ_ is the unweighted volume.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 12:02:53 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-12-13T12:02:53Z</dc:date>
    <item>
      <title>wt freq using PROC SUMMARY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611446#M178196</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Please help me with a PROC SUMMARY (only) statement to get the volume by category, weighted volume by category, mean of score by category.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Reason I want to use PROC SUMMARY is because I have other code using the same and PROC SUMMARY produces other metrics.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; category score wt &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; category score wt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;dlm&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;","&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1,67,2&lt;/P&gt;
&lt;P&gt;1,50,5&lt;/P&gt;
&lt;P&gt;1,55,6&lt;/P&gt;
&lt;P&gt;2,56,6&lt;/P&gt;
&lt;P&gt;2,68,5&lt;/P&gt;
&lt;P&gt;3,70,5&lt;/P&gt;
&lt;P&gt;4,73,8&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 20:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611446#M178196</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-12-12T20:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: wt freq using PROC SUMMARY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611447#M178197</link>
      <description>&lt;P&gt;A couple of questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;which variable is "volume"?&lt;/LI&gt;
&lt;LI&gt;when you say you want to get the volume by category, is this a sum or a mean or something else?&lt;/LI&gt;
&lt;LI&gt;when you want weighted volume, what variable does the weighting (and do you want the sum or the mean or something else)?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Dec 2019 20:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611447#M178197</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-12T20:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: wt freq using PROC SUMMARY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611449#M178198</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;which variable is "volume"? Category is segment, so I want volume and weighted volume by category&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;when you say you want to get the volume by category, is this a sum or a mean or something else? Count by category&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;when you want weighted volume, what variable does the weighting (and do you want the sum or the mean or something else)? Column is weight&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 21:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611449#M178198</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-12-12T21:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: wt freq using PROC SUMMARY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611532#M178240</link>
      <description>&lt;P&gt;Can the admin please move this post to the Statistical group&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 08:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611532#M178240</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-12-13T08:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: wt freq using PROC SUMMARY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611551#M178248</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have;
    class category;
    var wt score;
    output out=stats mean(score)=score_mean sum(wt)=wt_volume;
run;
     &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The variable _FREQ_ is the unweighted volume.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 12:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/wt-freq-using-PROC-SUMMARY/m-p/611551#M178248</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-13T12:02:53Z</dc:date>
    </item>
  </channel>
</rss>

