<?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 I want to adjust the bin size so I include a certain number of my desired parameters in my histogram in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-adjust-the-bin-size-so-I-include-a-certain-number-of/m-p/847716#M335168</link>
    <description>&lt;P&gt;Hello, I want to adjust the bin size on my histogram for the Income variable so a bin will contain data +/1 10,000 or +/- 20,000. I just need it to look like that so it's easier to read and interpret.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here's my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas question 5.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78016iD688A068FFBFC41B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas question 5.png" alt="sas question 5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Focus on the part where it says:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;*Make a histogram of median income;&lt;BR /&gt;Proc SGPlot data = RegPro.SimplReg;&lt;BR /&gt;Histogram Income;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is my histogram:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas question 6.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78018i279C69386238C428/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas question 6.png" alt="sas question 6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time and consideration.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 03:38:09 GMT</pubDate>
    <dc:creator>Jiordani</dc:creator>
    <dc:date>2022-12-05T03:38:09Z</dc:date>
    <item>
      <title>I want to adjust the bin size so I include a certain number of my desired parameters in my histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-adjust-the-bin-size-so-I-include-a-certain-number-of/m-p/847716#M335168</link>
      <description>&lt;P&gt;Hello, I want to adjust the bin size on my histogram for the Income variable so a bin will contain data +/1 10,000 or +/- 20,000. I just need it to look like that so it's easier to read and interpret.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here's my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas question 5.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78016iD688A068FFBFC41B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas question 5.png" alt="sas question 5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Focus on the part where it says:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;*Make a histogram of median income;&lt;BR /&gt;Proc SGPlot data = RegPro.SimplReg;&lt;BR /&gt;Histogram Income;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is my histogram:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas question 6.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78018i279C69386238C428/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas question 6.png" alt="sas question 6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time and consideration.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 03:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-adjust-the-bin-size-so-I-include-a-certain-number-of/m-p/847716#M335168</guid>
      <dc:creator>Jiordani</dc:creator>
      <dc:date>2022-12-05T03:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: I want to adjust the bin size so I include a certain number of my desired parameters in my histo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-adjust-the-bin-size-so-I-include-a-certain-number-of/m-p/847856#M335197</link>
      <description>&lt;P&gt;I cannot tell what you mean by "a bin will contain data +/1 10,000 or +/- 20,000. " even assuming the +/1 should be read as +/_&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you mean the width of a bin should be 10,000 then add the option Binwidth=10000 to the histogram statement. Typically you may also want to specify BINSTART to control the first boundary&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might suggest modifying your Histogram to look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Histogram income/ binstart=40000 binwidth=10000;&lt;/PRE&gt;
&lt;P&gt;Suggestion: Post code with text, copy your text and paste into a text box opened on the forum using the &amp;lt;/&amp;gt; icon above the message window. If a recommendation requires lots of code changes you may find that many of us don't want to retype significant amounts of text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 17:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-adjust-the-bin-size-so-I-include-a-certain-number-of/m-p/847856#M335197</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-05T17:52:57Z</dc:date>
    </item>
  </channel>
</rss>

