<?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 Histogram by class in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Histogram-by-class/m-p/650762#M78731</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I have 2 Variables:&amp;nbsp; Star, bin_NAV.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;- Star is the ordinal scale where its data included&amp;nbsp; 2-star, 3-star, 4-star and 5-star.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;- bin_NAV&amp;nbsp; is&amp;nbsp;the ordinal scale where its data included&amp;nbsp; 1, 2, 3, 4 and 5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (bin_NAV is created from proc hpbin to bin the ratio scale variable, NAV, into 5 classes)&lt;/P&gt;
&lt;P&gt;I want to build histogram classify by Star by the following procedure.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 493px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39987i06C93BDAA6CB569A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The histogram show the value of bin_nav at 0 and 6, which are not in the data.&amp;nbsp; (See figure below)&lt;/P&gt;
&lt;P&gt;What wrong is the code?&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 788px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39989iFDE3E95C85ECEAF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 13:54:46 GMT</pubDate>
    <dc:creator>Golf</dc:creator>
    <dc:date>2020-05-26T13:54:46Z</dc:date>
    <item>
      <title>Histogram by class</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Histogram-by-class/m-p/650762#M78731</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I have 2 Variables:&amp;nbsp; Star, bin_NAV.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;- Star is the ordinal scale where its data included&amp;nbsp; 2-star, 3-star, 4-star and 5-star.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;- bin_NAV&amp;nbsp; is&amp;nbsp;the ordinal scale where its data included&amp;nbsp; 1, 2, 3, 4 and 5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (bin_NAV is created from proc hpbin to bin the ratio scale variable, NAV, into 5 classes)&lt;/P&gt;
&lt;P&gt;I want to build histogram classify by Star by the following procedure.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 493px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39987i06C93BDAA6CB569A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The histogram show the value of bin_nav at 0 and 6, which are not in the data.&amp;nbsp; (See figure below)&lt;/P&gt;
&lt;P&gt;What wrong is the code?&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 788px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39989iFDE3E95C85ECEAF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 13:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Histogram-by-class/m-p/650762#M78731</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-05-26T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram by class</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Histogram-by-class/m-p/650763#M78732</link>
      <description>&lt;P&gt;UNIVARIATE doesn't know that you think the values of BIN_NAV are categories. It sees a numeric variable, considers it to be continuous, and bins them according to its default rule. You want to use the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_univariate_syntax09.htm&amp;amp;locale=en#procstat.univariate.hist_midpoints" target="_self"&gt;MIDPOINTS=&lt;/A&gt; option of the HISTOGRAM statement.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 14:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Histogram-by-class/m-p/650763#M78732</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-26T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram by class</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Histogram-by-class/m-p/650779#M78735</link>
      <description>Thank You for your help.&lt;BR /&gt;Golf</description>
      <pubDate>Tue, 26 May 2020 14:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Histogram-by-class/m-p/650779#M78735</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-05-26T14:39:50Z</dc:date>
    </item>
  </channel>
</rss>

