<?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: Proc HPBIN- Output Range to a dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568923#M11733</link>
    <description>&lt;P&gt;Well, Not in this case-- it seems like it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THe out dataset has 2 variables:&lt;/P&gt;&lt;P&gt;1. actual MPG_City variable&lt;/P&gt;&lt;P&gt;2. BIN_MPG_City: This variable has the Bin number for that particular mpg_city.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to get the lower and upper bounds in a dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 20:47:09 GMT</pubDate>
    <dc:creator>david27</dc:creator>
    <dc:date>2019-06-25T20:47:09Z</dc:date>
    <item>
      <title>Proc HPBIN- Output Range to a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568912#M11730</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get the lower and upper boundary limits of the bucket inside a dataset that is result of proc HPBIN?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpbin data=sashelp.cars  numbin=10 output=out_bin quantile ;
input mpg_city;
id mpg_city;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you run the above code you will get the below in results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want the Range in a dataset. How can i do that?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HPBIN_Output.PNG" style="width: 511px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30549i868BA1DA7D194F70/image-size/large?v=v2&amp;amp;px=999" role="button" title="HPBIN_Output.PNG" alt="HPBIN_Output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 19:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568912#M11730</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2019-06-25T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HPBIN- Output Range to a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568921#M11732</link>
      <description>&lt;A href="https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Search for OUT/OUTPUT statements on the PROC statement itself as well in the documentation, but the ODS tables are usually quite good.</description>
      <pubDate>Tue, 25 Jun 2019 20:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568921#M11732</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-25T20:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HPBIN- Output Range to a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568923#M11733</link>
      <description>&lt;P&gt;Well, Not in this case-- it seems like it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THe out dataset has 2 variables:&lt;/P&gt;&lt;P&gt;1. actual MPG_City variable&lt;/P&gt;&lt;P&gt;2. BIN_MPG_City: This variable has the Bin number for that particular mpg_city.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to get the lower and upper bounds in a dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 20:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568923#M11733</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2019-06-25T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HPBIN- Output Range to a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568926#M11734</link>
      <description>What does your code currently look like?</description>
      <pubDate>Tue, 25 Jun 2019 21:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568926#M11734</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-25T21:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HPBIN- Output Range to a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568929#M11735</link>
      <description>&lt;P&gt;It worked fine for me using the ODS table, you can use SCAN() to split the range since it's the text so it's a slight extra step but not too bad IMO.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;EDIT: I stand corrected, it has the LB and UB in the table as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Obs	Variable	BinnedVariable	LB	UB	Range	Bin	Frequency	Proportion
1	MPG_City	BIN_MPG_City	.	15.5	MPG_City &amp;lt; 15.5	1	48	0.11214953
2	MPG_City	BIN_MPG_City	15.5	17.5	15.5 &amp;lt;= MPG_City &amp;lt; 17.5	2	72	0.16822430
3	MPG_City	BIN_MPG_City	17.5	18.5	17.5 &amp;lt;= MPG_City &amp;lt; 18.5	3	69	0.16121495
4	MPG_City	BIN_MPG_City	18.5	19.5	18.5 &amp;lt;= MPG_City &amp;lt; 19.5	4	37	0.08644860
5	MPG_City	BIN_MPG_City	19.5	20.5	19.5 &amp;lt;= MPG_City &amp;lt; 20.5	5	57	0.13317757
6	MPG_City	BIN_MPG_City	20.5	21.5	20.5 &amp;lt;= MPG_City &amp;lt; 21.5	6	38	0.08878505
7	MPG_City	BIN_MPG_City	21.5	23.5	21.5 &amp;lt;= MPG_City &amp;lt; 23.5	7	25	0.05841121
8	MPG_City	BIN_MPG_City	23.5	26.5	23.5 &amp;lt;= MPG_City &amp;lt; 26.5	8	53	0.12383178
9	MPG_City	BIN_MPG_City	26.5	.	26.5 &amp;lt;= MPG_City	9	29	0.06775701&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jun 2019 21:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568929#M11735</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-25T21:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HPBIN- Output Range to a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568934#M11736</link>
      <description>&lt;P&gt;Can you please give the code you used to produce this result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hpbin data=_temp_  numbin=10 output=out_bin quantile ;
input ficeclv9_score;
id ficeclv9_score;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jun 2019 21:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568934#M11736</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2019-06-25T21:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HPBIN- Output Range to a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568935#M11737</link>
      <description>Follow the process in the link in my initial response.</description>
      <pubDate>Tue, 25 Jun 2019 21:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-HPBIN-Output-Range-to-a-dataset/m-p/568935#M11737</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-25T21:24:45Z</dc:date>
    </item>
  </channel>
</rss>

