<?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: How to create a histogram with median as a middle point in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-histogram-with-median-as-a-middle-point/m-p/561965#M18207</link>
    <description>&lt;P&gt;What do you mean by endpoints? If I understand you correctly, you can do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create table temp as
   select *, 
   median(height),
   (case
      when height lt median(height) then "&amp;lt; median"
      when height ge median(height) then "&amp;gt;= median"
     end) as overunder
   from sashelp.class;
quit;

proc sgplot data=temp;
   vbar overunder;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 May 2019 13:33:45 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-05-28T13:33:45Z</dc:date>
    <item>
      <title>How to create a histogram with median as a middle point</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-histogram-with-median-as-a-middle-point/m-p/561951#M18206</link>
      <description>&lt;P&gt;Is it possible to create a histgram with only 2 uneven bins: "&amp;gt;= median"&amp;nbsp; and&amp;nbsp; "&amp;lt; median" ?&amp;nbsp; Using either proc univariate, or sgplot.&amp;nbsp; How to set the middle or endpoint?&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 12:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-histogram-with-median-as-a-middle-point/m-p/561951#M18206</guid>
      <dc:creator>HappySASUE</dc:creator>
      <dc:date>2019-05-28T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a histogram with median as a middle point</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-histogram-with-median-as-a-middle-point/m-p/561965#M18207</link>
      <description>&lt;P&gt;What do you mean by endpoints? If I understand you correctly, you can do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create table temp as
   select *, 
   median(height),
   (case
      when height lt median(height) then "&amp;lt; median"
      when height ge median(height) then "&amp;gt;= median"
     end) as overunder
   from sashelp.class;
quit;

proc sgplot data=temp;
   vbar overunder;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 May 2019 13:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-histogram-with-median-as-a-middle-point/m-p/561965#M18207</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-28T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a histogram with median as a middle point</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-histogram-with-median-as-a-middle-point/m-p/562032#M18208</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188012"&gt;@HappySASUE&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is it possible to create a histgram with only 2 uneven bins: "&amp;gt;= median"&amp;nbsp; and&amp;nbsp; "&amp;lt; median" ?&amp;nbsp; Using either proc univariate, or sgplot.&amp;nbsp; How to set the middle or endpoint?&amp;nbsp; Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sure, that's just a bar chart though, I wouldn't call it a histogram. And in theory, it should be a straight line because that's the definition of the median.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 17:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-histogram-with-median-as-a-middle-point/m-p/562032#M18208</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-28T17:54:23Z</dc:date>
    </item>
  </channel>
</rss>

