<?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: histogram with a mean of another varieble in each bin in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515625#M139161</link>
    <description>No disagreement there. Is the calculating the bins the issue? Although SAS will do that automatically with PROC UNIVARIATE or other procedures, I'm sure you're aware that bin selection can change the graph a lot. Anyways, you do need to precalculate the numbers and then create the graph for a combined bar plot anyways. You could run PROC UNIVARIATE and capture the output and use that as your feeder, but it's still a two step process.</description>
    <pubDate>Fri, 23 Nov 2018 17:37:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-23T17:37:00Z</dc:date>
    <item>
      <title>histogram with a mean of another varieble in each bin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515538#M139111</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to draw a histogram of one interval variable in SAS that also would present a mean of another variable in the bin of the histogram. I'm attaching a pdf to give you an idea what I would like to&amp;nbsp;get.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DarekB&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 13:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515538#M139111</guid>
      <dc:creator>DarekB</dc:creator>
      <dc:date>2018-11-23T13:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: histogram with a mean of another varieble in each bin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515540#M139112</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/247991"&gt;@DarekB&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create an overlay chart as is described here:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/02/05/dual-response-axis-bar-line-overlay-part-1/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/02/05/dual-response-axis-bar-line-overlay-part-1/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This blog (&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;Graphically Speaking&lt;/A&gt;) presents a great variety of plots that can be produced with SAS ODS Graphics.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 13:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515540#M139112</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-23T13:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: histogram with a mean of another varieble in each bin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515570#M139128</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one question. Instead of a bar plot with categories I would like to have a histogram of an interval variable drawn by&amp;nbsp;SAS&amp;nbsp;and then a line on&amp;nbsp;the histogram&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515570#M139128</guid>
      <dc:creator>DarekB</dc:creator>
      <dc:date>2018-11-23T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: histogram with a mean of another varieble in each bin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515578#M139132</link>
      <description>&lt;P&gt;It seems that more advanced techniques (PROC TEMPLATE) are required to overlay a curve on a histogram:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/04/24/overlay-density-curve-on-a-histogram.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/04/24/overlay-density-curve-on-a-histogram.html&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not really familiar with PROC TEMPLATE. So, if I were to produce that graph, I would consider creating a bar&amp;nbsp;chart based&amp;nbsp;on the histogram data. For example, if you create the original histogram with PROC UNIVARIATE, you can write the histogram data to a dataset:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Exporting-Histogram-Data-to-Excel/m-p/388279#M20233" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Exporting-Histogram-Data-to-Excel/m-p/388279#M20233&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515578#M139132</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-23T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: histogram with a mean of another varieble in each bin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515585#M139137</link>
      <description>&lt;P&gt;A histogram is a bar chart with no spaces between the bars. Add that option to the blog posts and it's essentially the same thing.&lt;/P&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/247991"&gt;@DarekB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one question. Instead of a &lt;STRONG&gt;bar plot with categories&lt;/STRONG&gt; I would like to have a &lt;STRONG&gt;histogram&lt;/STRONG&gt; of an interval variable drawn by&amp;nbsp;SAS&amp;nbsp;and then a line on&amp;nbsp;the histogram&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515585#M139137</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-23T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: histogram with a mean of another varieble in each bin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515595#M139141</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;SPAN class="login-bold"&gt;&amp;nbsp;My understanding is that&amp;nbsp;&lt;/SPAN&gt;to have a histogram you have to calculate bins (categories) based on the interval variable sample distribution. Then you draw a bar plot with calculated bins as categories.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 16:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515595#M139141</guid>
      <dc:creator>DarekB</dc:creator>
      <dc:date>2018-11-23T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: histogram with a mean of another varieble in each bin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515625#M139161</link>
      <description>No disagreement there. Is the calculating the bins the issue? Although SAS will do that automatically with PROC UNIVARIATE or other procedures, I'm sure you're aware that bin selection can change the graph a lot. Anyways, you do need to precalculate the numbers and then create the graph for a combined bar plot anyways. You could run PROC UNIVARIATE and capture the output and use that as your feeder, but it's still a two step process.</description>
      <pubDate>Fri, 23 Nov 2018 17:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-with-a-mean-of-another-varieble-in-each-bin/m-p/515625#M139161</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-23T17:37:00Z</dc:date>
    </item>
  </channel>
</rss>

