<?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 Challenge in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/761956#M241184</link>
    <description>I’m not sure what the problem is … if you combine the data sets univariate allows you to specify the bins interval and widths via the options and the histogram statement in proc sgplot also allows you to control the binwidths and intervals but not density overlays. &lt;BR /&gt;&lt;BR /&gt;No procedure works with multiple data sets as the main data source AFAIK (mapping excluded). &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Aug 2021 00:43:16 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-08-17T00:43:16Z</dc:date>
    <item>
      <title>Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/761952#M241182</link>
      <description>&lt;P&gt;Two data sets, A and B.&amp;nbsp; Continuous variables.&amp;nbsp; X in A.&amp;nbsp; Y in B.&lt;/P&gt;
&lt;P&gt;Using Proc Univariate (or other) we can create histograms of the single variable in each dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Imagine plotting the two histograms one above the other:&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="Two Histograms.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62643i5016B119DD1F0294/image-size/large?v=v2&amp;amp;px=999" role="button" title="Two Histograms.png" alt="Two Histograms.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Objective:&amp;nbsp; Sum the corresponding bins.&amp;nbsp; (And then histogram that.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps the same result can be obtained using potentially generated kernel data.&amp;nbsp; Summing bin kernel data, then, and histogramming that would yield the same conclusions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There might be other approaches as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your thoughts appreciated....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nicholas Kormanik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800000"&gt;(As has been the case so many times before, my question above was not asked in the best of ways.&amp;nbsp; Sorry.&amp;nbsp; It evolves below....)&lt;/FONT&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 00:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/761952#M241182</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-23T00:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/761956#M241184</link>
      <description>I’m not sure what the problem is … if you combine the data sets univariate allows you to specify the bins interval and widths via the options and the histogram statement in proc sgplot also allows you to control the binwidths and intervals but not density overlays. &lt;BR /&gt;&lt;BR /&gt;No procedure works with multiple data sets as the main data source AFAIK (mapping excluded). &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Aug 2021 00:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/761956#M241184</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-17T00:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/761970#M241189</link>
      <description>&lt;P&gt;No "problem", per se.&amp;nbsp; Just was interested in your thoughts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A priori, I haven't a clue what the bins distribution or sizes might be, until Proc Univariate, Histogram, shows me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, as one might anticipate, this case is just one of many.&amp;nbsp; Say, 400 or so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am particularly interested in LOW areas, and especially areas where there is as little 'overlap' as possible between the two histograms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;"No procedure works with multiple data sets as the main data source..."&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Important to be aware of this.&amp;nbsp; Thus, some combining of the two datasets will be necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are options to output potentially created datasets: outhistogram and outkernel.&amp;nbsp; But not sure if that would be the way to go in present case.&amp;nbsp; Perhaps it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 05:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/761970#M241189</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-17T05:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762023#M241217</link>
      <description>&lt;P&gt;My basic approach to what I think you are asking if it is to create a histogram is to combine data sets adding an identifier for which set each record comes from. Then use Proc SGplot with a histogram and the identifier as a Group variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/* first make a couple of data sets with common variables*/
data a;
   set sashelp.cars;
   where type='Sedan';
run;

data b;
   set sashelp.cars;
   where type='SUV';
run;
/* combine*/

data combined;
   set a b indsname=dsn;
   source=dsn;
run;

Proc sgplot data=combined;
   histogram wheelbase /group=source transparency=.5;
run;&lt;/PRE&gt;
&lt;P&gt;If you haven't seen it before the INDSNAME option creates a temporary variable that holds the name of the data set contributing the current observation. The Source=dsn; then makes a variable that stays in the data set with that information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the Histogram statement overlays the two data sources with different color. The transparency allows seeing a "short" bar hidden by taller one with similar values of the variable. Options in the Histogram statement allow you to control the size of bins with options like BINWIDTH, which sets the range of values represented by bars Binwidth=5 would mean bins represent multiples of 5; NBINS where you specify the number of bins and SAS calculates the widths based on that.&lt;/P&gt;
&lt;PRE&gt;Proc sgplot data=combined;
   histogram wheelbase /group=source transparency=.5
                        binwidth=5
   ;
run;


Proc sgplot data=combined;
   histogram wheelbase /group=source transparency=.5
                        nbins=25
   ;
run;&lt;/PRE&gt;
&lt;P&gt;There are more options available. Read the documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 11:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762023#M241217</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-17T11:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762046#M241227</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
   set sashelp.cars;
   where type='Sedan';
run;

data b;
   set sashelp.cars;
   where type='SUV';
run;
/* combine*/

data combined;
   set a b indsname=dsn;
   source=dsn;
run;

Proc sgpanel data=combined;
   panelby source/layout=rowlattice novarname;
   histogram wheelbase /datalabel scale=count dataskin=pressed ;
   density wheelbase/type=kernal;
   density wheelbase/type=normal;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1629206236262.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62655i66A0AD4C0FEAB2BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1629206236262.png" alt="Ksharp_0-1629206236262.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 13:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762046#M241227</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-08-17T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762410#M241397</link>
      <description>&lt;P&gt;Further explanation....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The histograms have been generated through 'machine learning' (Proc HPSplit).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The goal was to find a 'sweet spot' for some process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The top histogram says the 'sweet spot' is GREATER THAN the parameter values indicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The lower histogram says the&amp;nbsp;'sweet spot' is LESS THAN the parameter values indicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where there is a lot of overlap in parameter estimation, well, that's not good.&amp;nbsp; 'Sweet spot' can't be GT and LT some value simultaneously.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thus, the notion of adding the two histograms, and looking for the low area.&amp;nbsp; Not at all perfect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bear in mind that there are over 400 such sets of histograms.&amp;nbsp; And the objective is to find out which sets represents the best 'sweet spots' possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Presently the approach I'm using is to eyeball it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 00:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762410#M241397</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-19T00:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762473#M241438</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
   set sashelp.cars;
   where type='Sedan';
run;

data b;
   set sashelp.cars;
   where type='SUV' ;
   wheelbase=wheelbase*1.4;
run;

/* combine*/
data combined;
   set a b indsname=dsn;
   source=dsn;
run;

proc sql noprint; select wheelbase into : lineval from (select wheelbase, count(*) as freq from combined group by wheelbase) having freq=min(freq);

proc sgpanel data=combined;
   panelby source/layout=rowlattice novarname;
   histogram wheelbase /datalabel scale=count dataskin=pressed ;lineparm X=&amp;amp;lineval Y=150 slope=. ;
   density wheelbase/type=kernal;
   density wheelbase/type=normal;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_0-1629357921742.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62716i40DD5D093976B36A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisNZ_0-1629357921742.png" alt="ChrisNZ_0-1629357921742.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 07:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762473#M241438</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-19T07:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762776#M241535</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; All appreciated examples of what one might do.&amp;nbsp; Good to have them here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My original question probably wasn't exactly clear enough.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using an analogy I'll try to illustrate a bit more:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Imagine a river.&amp;nbsp; Suppose there are two banks (sides, rocks, soil).&amp;nbsp; Call one a "Left Bank" (Greater Than) and the other "Right Bank" (Less Than). There is water in the middle between the Left Bank and Right Bank.&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="Two Banks.jpg" style="width: 891px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62764i1FB1E50DED9C5249/image-size/large?v=v2&amp;amp;px=999" role="button" title="Two Banks.jpg" alt="Two Banks.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to find the 'water' between the banks.&amp;nbsp; I.e., a flat area between the histograms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is another image that shows too much water between the banks:&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="Crested Banks.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62767iB1D9F08BF60FBE76/image-size/large?v=v2&amp;amp;px=999" role="button" title="Crested Banks.jpg" alt="Crested Banks.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I.e., huge open area between the histograms.&amp;nbsp; Not helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking for a Goldilocks-sized river.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 07:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762776#M241535</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-20T07:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762789#M241540</link>
      <description>&lt;P&gt;Still clear as mud.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 09:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762789#M241540</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-20T09:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762798#M241544</link>
      <description>&lt;P&gt;Love the analogy and the pics! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What do you look for when you eyeball the charts by hand? What's the pattern you look for that could be coded?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 10:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762798#M241544</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-20T10:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762866#M241567</link>
      <description>Plateau - you're looking for the plateaus.</description>
      <pubDate>Fri, 20 Aug 2021 15:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/762866#M241567</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-20T15:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763002#M241625</link>
      <description>&lt;P&gt;Plateau?&amp;nbsp; No, the opposite.&amp;nbsp; A valley.&amp;nbsp; And a nice medium-sized river running through the valley.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 00:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763002#M241625</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-21T00:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763014#M241629</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; nice medium-sized river running through the valley&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This does not describe an algorithm. My simple logic looks for the lowest point and plots it. What would the logic to implement be?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 02:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763014#M241629</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-22T02:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763016#M241630</link>
      <description>&lt;P&gt;So you want overlay these two histogram ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
   set sashelp.heart;
   where sex='Male';
run;

data b;
   set sashelp.heart;
   where sex='Female';
run;
/* combine*/

data combined;
   set a b indsname=dsn;
   source=dsn;
run;

Proc sgplot data=combined;
   histogram height /group=source datalabel scale=count  transparency=0.5;
   density height/type=kernel group=source;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1629538703800.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62794i53FDD09D5A696C75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1629538703800.png" alt="Ksharp_0-1629538703800.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 09:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763016#M241630</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-08-21T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763093#M241650</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&amp;nbsp;Apt and clever response.&amp;nbsp; That's what we see in the histograms shown at top.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is one that's even worse:&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="2​.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62822i6497BA40029E2D7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2​.png" alt="2​.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clear as rocky banks and mud.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 02:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763093#M241650</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-22T02:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763097#M241652</link>
      <description>&lt;P&gt;Remember, the 'machine learning' has attempted to show a 'sweet spot' -- some level along a continuous range of values that supposedly results in a best chance of outcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The top histogram is for Greater Than values.&amp;nbsp; The lower histogram is for Less Than values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of the nearly 400 such sets of histograms, NONE appear to be perfect -- i.e., a reasonable clear distance between GT and LT.&amp;nbsp; So, the objective is to find the 'best' of the 400.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two more examples of "obviously nuts":&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="6​.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62823iCF0E5E67A9D282CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="6​.png" alt="6​.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the overlap?&amp;nbsp; Like saying your 'sweet spot' is greater than 3, but less than 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's another:&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="1​.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62824iA4E4DDB44DD703D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="1​.png" alt="1​.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, on a scale of -71 to 71, the 'sweet spot' lies between -71 and 71.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How helpful.&amp;nbsp; (NOT!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 02:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763097#M241652</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-22T02:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763098#M241653</link>
      <description>Do all intervals possible and calculate the metric of interest. &lt;BR /&gt;Then isolate the value of interest.</description>
      <pubDate>Sun, 22 Aug 2021 02:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763098#M241653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-22T02:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763104#M241657</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22691"&gt;@NKormanik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&amp;nbsp;Apt and clever response.&amp;nbsp; That's what we see in the histograms shown at top.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is one that's even worse:&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="2​.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62822i6497BA40029E2D7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2​.png" alt="2​.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clear as rocky banks and mud.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you add something to point out what you are finding of interest? Or mention coordinates?&lt;/P&gt;
&lt;P&gt;I think we have, at least partially, one of those things where you have become so involved with your data that you expect others to know it without actually describing it clearly. I see lots of "low" spot. But haven't a clue what makes this "even worse" than the first one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you actually want to "sum" the two then the first part is to create the discrete bins, without actual data that might be interesting challenge by itself but with ODS graphics you can get usually get the graphed data using ODS output. If the two sets have x axis values/increments in common then combining two output sets with the counts and summing is a pretty trivial Proc freq or Proc means/summary step.&lt;/P&gt;
&lt;P&gt;But starting data would be needed and likely the specific options you are /want to use for binning the data.Sgplot where you set bidwidths and and a starting offset might work best.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 06:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763104#M241657</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-22T06:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763136#M241661</link>
      <description>&lt;P&gt;I think it is more like a OR&amp;nbsp; problem ，not&amp;nbsp;histogram graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1636"&gt;@RobPratt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 09:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763136#M241661</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-08-22T09:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram Challenge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763138#M241662</link>
      <description>&lt;P&gt;By the way, what would the ideal set of histograms look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad you asked....&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="Ideal.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62848i058DC79327ECA62F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ideal.png" alt="Ideal.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the programming objective is to find among the actual 400 sets of histograms, the ones that are as close as possible to the ideal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Actually, I already know that NONE even come close.&amp;nbsp; But which one is 'best'?&amp;nbsp; Are any even usable?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(This was, you know, a well-funded Government study.&amp;nbsp; Tax payers want....&amp;nbsp; well, maybe not....&amp;nbsp; At any rate.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 09:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Histogram-Challenge/m-p/763138#M241662</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2021-08-22T09:56:56Z</dc:date>
    </item>
  </channel>
</rss>

