<?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: Showing average on a histogram in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212635#M3025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Reeza,&lt;/P&gt;&lt;P&gt;I created a frequency table from the above table call Table_freq. It has the no of outcome (both loss and profit in one column though) on each date. I tried to run that report from that table with the following code.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=Apple.Table_freq;&lt;/P&gt;&lt;P&gt;vbar Date / stat=freq &lt;/P&gt;&lt;P&gt;&amp;nbsp; groupdisplay=cluster group=Outcome;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / location=inside position=topright;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Start_Date weekdate10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 14:07:37 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2015-06-24T14:07:37Z</dc:date>
    <item>
      <title>Showing average on a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212629#M3019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Following code gives me histogram showing total count in Y axis. Can someone tell me how do I get average instead of total count? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=have;&lt;/P&gt;&lt;P&gt;vbar Start_Date / stat=freq &lt;/P&gt;&lt;P&gt;&amp;nbsp; groupdisplay=cluster group=event;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / location=inside position=topright;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where event in ('volley ball','soccer') and Start_date between "01Mar2014"d and "30Apr2014"d;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Start_Date weekdate10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 02:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212629#M3019</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-06-24T02:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Showing average on a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212630#M3020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A histogram by definition shows frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the STAT= in the VBAR statement - to MEAN instead of FREQ to plot a bar chart with the mean value instead of counts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 03:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212630#M3020</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-24T03:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Showing average on a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212631#M3021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;Changed that to mean, still not working. can you please tell why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=have;&lt;/P&gt;&lt;P&gt;vbar Start_Date / stat=mean&lt;/P&gt;&lt;P&gt;&amp;nbsp; groupdisplay=cluster group=event;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / location=inside position=topright;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where event in ('volley ball','soccer') and Start_date between "01Mar2014"d and "30Apr2014"d;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Start_Date weekdate10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 12:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212631#M3021</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-06-24T12:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Showing average on a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212632#M3022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post some sample data and explain what 'still not working' means?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212632#M3022</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-24T13:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Showing average on a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212633#M3023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;I have Feb and Mar data of both 2014 and 2015.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border: 0px solid black;" width="85"&gt;Date&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="145"&gt;Outcome&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2014&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;27-Feb-2015&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;27-Feb-2014&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;24-Feb-2014&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2015&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;26-Feb-2015&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2015&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2015&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2015&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Loss&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2015&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2014&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2014&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;01-Mar-2014&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black;"&gt;25-Feb-2014&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;Profit&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212633#M3023</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-06-24T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Showing average on a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212634#M3024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the numbers you're trying to take the average of?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212634#M3024</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-24T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Showing average on a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212635#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Reeza,&lt;/P&gt;&lt;P&gt;I created a frequency table from the above table call Table_freq. It has the no of outcome (both loss and profit in one column though) on each date. I tried to run that report from that table with the following code.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=Apple.Table_freq;&lt;/P&gt;&lt;P&gt;vbar Date / stat=freq &lt;/P&gt;&lt;P&gt;&amp;nbsp; groupdisplay=cluster group=Outcome;&lt;/P&gt;&lt;P&gt;&amp;nbsp; keylegend / location=inside position=topright;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Start_Date weekdate10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 14:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Showing-average-on-a-histogram/m-p/212635#M3025</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-06-24T14:07:37Z</dc:date>
    </item>
  </channel>
</rss>

