<?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: Endpoints for Histogram (or remove outliers) in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/841994#M747</link>
    <description>&lt;P&gt;In SGPLOT if your provide an XAXIS statement with a values list that will truncate values.&lt;/P&gt;
&lt;P&gt;Such as:&lt;/P&gt;
&lt;PRE&gt;xaxis values=(0 to 600 by 100);&lt;/PRE&gt;
&lt;P&gt;which would limit the X values used to a maximum of 600.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide code as TEXT pasted into a text box opened on the forum with the &amp;lt;/&amp;gt; icon. I am not going to retype your code from a picture. It is hard to make changes to pictures.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 22:12:11 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-11-01T22:12:11Z</dc:date>
    <item>
      <title>Endpoints for Histogram (or remove outliers)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/841975#M746</link>
      <description>&lt;P&gt;Hi! I'm making a histogram of minutes of exercise in a week. Below is my graph and my code. I want to set up endpoints, so I can have a graph that makes sense. Or in other words, I want to have a histogram without the extreme observations&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.PNG" style="width: 365px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76855i7FA62C4BF1B4136C/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.PNG" alt="code.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="histogram.PNG" style="width: 802px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76856iE318B520ACC44EE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="histogram.PNG" alt="histogram.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="outliers.PNG" style="width: 749px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76857iDF4BCE467AB613BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="outliers.PNG" alt="outliers.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/841975#M746</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2022-11-01T19:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoints for Histogram (or remove outliers)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/841994#M747</link>
      <description>&lt;P&gt;In SGPLOT if your provide an XAXIS statement with a values list that will truncate values.&lt;/P&gt;
&lt;P&gt;Such as:&lt;/P&gt;
&lt;PRE&gt;xaxis values=(0 to 600 by 100);&lt;/PRE&gt;
&lt;P&gt;which would limit the X values used to a maximum of 600.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide code as TEXT pasted into a text box opened on the forum with the &amp;lt;/&amp;gt; icon. I am not going to retype your code from a picture. It is hard to make changes to pictures.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 22:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/841994#M747</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-01T22:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoints for Histogram (or remove outliers)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/842022#M748</link>
      <description>&lt;P&gt;Thanks for this suggestion, but the graph pretty much combined all the values into one big column.&amp;nbsp; I also tried to make the upper limit 300. But then the output is zoom into the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="histogram.PNG" style="width: 691px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76862iB843F53501E105C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="histogram.PNG" alt="histogram.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="histogramzoom.PNG" style="width: 701px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76863i5E923D966DB2C5D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="histogramzoom.PNG" alt="histogramzoom.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;PRE&gt;&lt;CODE class=""&gt;*this is for the first histogram*&lt;BR /&gt;proc sgplot data=aerobics_v5;&lt;BR /&gt;histogram Aerobic_Min_Week;&lt;BR /&gt;xaxis values=(0 to 1000 by 20);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;*this&amp;nbsp;is&amp;nbsp;for&amp;nbsp;the&amp;nbsp;second&amp;nbsp;histogram*&lt;BR /&gt;proc sgplot data=aerobics_v5;&lt;BR /&gt;histogram Aerobic_Min_Week;&lt;BR /&gt;xaxis values=(0 to 300 by 20);&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 04:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/842022#M748</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2022-11-02T04:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoints for Histogram (or remove outliers)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/842023#M749</link>
      <description>I guess bin sizes would help</description>
      <pubDate>Wed, 02 Nov 2022 04:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/842023#M749</guid>
      <dc:creator>chester2018</dc:creator>
      <dc:date>2022-11-02T04:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoints for Histogram (or remove outliers)</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/842082#M750</link>
      <description>&lt;P&gt;Read about &lt;A href="https://blogs.sas.com/content/iml/2014/08/25/bins-for-histograms.html" target="_self"&gt;how to use the BINWIDTH= option on the HISTOGRAM statement to define the bin width&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You can also use the MAX= option on the XAXIS statement to view only a subset of the histogram.&lt;/P&gt;
&lt;P&gt;For example, the following statements truncate the range of the MPG_City variable in the Sashelp.Cars data and set the bin width to 2.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Zoom in on Lower Values of MPG_City";
title2 "Data Truncated by MPG &amp;lt;= 31";
proc sgplot data=Sashelp.cars;
   histogram MPG_City / binwidth=2 binstart=10;
   xaxis values=(10 to 30 by 2) max=31;  /* Optional: use VALUESHINT option */
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Endpoints-for-Histogram-or-remove-outliers/m-p/842082#M750</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-02T13:07:18Z</dc:date>
    </item>
  </channel>
</rss>

