<?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: Alternative to PROC sgplot; need different income bins in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524627#M142679</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much. Really useful information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one final question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the image of the stacked bar that I attached in my first email. Look at the Y axis. It says percent. When I choose type=percent on my graph, it doesn't go from 0.1 to 1 but 0% to 100%. Is there an option to make it like the graph I attached?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this might be related to that, but I would like the bars to be the same size (as in that pic)..so then that I can easily compare the Yes/No for Loan/Status among the different income bins.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First would be to have an appropriate format assigned to the YAXIS variable.&amp;nbsp;You may have done something&amp;nbsp;in a prior step that assigned a PERCENT format to your y variable. Try adding a FORMAT statement that uses something like F3.1 to show one decimal.&lt;/P&gt;
&lt;P&gt;In GCHART you would&amp;nbsp;provide&amp;nbsp;finer control over values displayed at tick marks and&amp;nbsp;which by creating an AXIS statement with ORDER list. In SGPLOT the YAXIS statement allows setting a list of values but you would still want an appropriate format to show 1 versus 100%. Both of the axis value lists allow syntax such as 0 to 1 by .1 to create 11 axis tick marks with values of 0, 0.1, 0.2.&lt;/P&gt;
&lt;P&gt;There are lots of worked examples in the online code, at&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/sassamples/graphgallery/index.html" target="_blank"&gt;http://support.sas.com/sassamples/graphgallery/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/" target="_blank"&gt;http://robslink.com/SAS/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jan 2019 17:30:57 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-01-04T17:30:57Z</dc:date>
    <item>
      <title>Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524190#M142517</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing some predictive modeling (with Logistic Regression) and I'm at the stage of doing some bivariate analysis. I want to visualize this analysis but I don't have access to proc sgplot, just proc gchart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The situation:&lt;/STRONG&gt; I have a column/variable with an applicant's income (one of the predictors), and I want to do some analysis of this variable by comparing to the response variable (what is being predicted)..Loan_Status (Yes or No ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What have I done:&lt;/STRONG&gt; I have just imported the train and test data-sets. The only difference is that the train data-set has the response variable. (Loan_Status)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem: &lt;/STRONG&gt;In the existing train/test datasets, I just have all the applicants income, but what I would want to do is create 4 different bins (Low, Average, High, Very High) income groups and then compare it to the Loan_Status. I want to see some stacked bars. &lt;STRONG&gt;I've attached an image of what I want.&amp;nbsp;&lt;/STRONG&gt; Now I know I can use proc format to create these bins..but I'm not sure how to then link this format to an existing data-set?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I created this line of code: But I keep getting errors. &lt;STRONG&gt;One error is that no such variable such as value exists. There might be other errors in the code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value group&lt;/P&gt;&lt;P&gt;1 = 'Low'&lt;/P&gt;&lt;P&gt;2 = 'Average'&lt;/P&gt;&lt;P&gt;3 = 'High'&lt;/P&gt;&lt;P&gt;4 = 'Very High'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data income;&lt;BR /&gt;set train; &lt;STRONG&gt;(name of initial dataset I imported)&lt;/STRONG&gt;&lt;BR /&gt;if Applicant_Inc &amp;lt;=5000 then incomeg=1;&lt;BR /&gt;if Applicant_Inc &amp;lt;=8000 then incomeg=2;&lt;BR /&gt;if Applicant_Inc &amp;lt;=16000 then incomeg=3;&lt;BR /&gt;else incomeg=4;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gchart data=income;&lt;/P&gt;&lt;P&gt;format Applicant_Inc group.;&lt;/P&gt;&lt;P&gt;vbar Applicant_Inc /&lt;/P&gt;&lt;P&gt;coutline=black&lt;/P&gt;&lt;P&gt;subgroup=Loan_Status&lt;/P&gt;&lt;P&gt;sumvar=value&lt;/P&gt;&lt;P&gt;legend=legend1&lt;/P&gt;&lt;P&gt;type=sum&lt;/P&gt;&lt;P&gt;width=8&lt;/P&gt;&lt;P&gt;maxis=axis1&lt;/P&gt;&lt;P&gt;raxis=axis2&lt;/P&gt;&lt;P&gt;discrete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Income.png" style="width: 389px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25954iA415DAFA32AFDABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Income.png" alt="Income.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 00:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524190#M142517</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-01-04T00:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524201#M142520</link>
      <description>Hi:&lt;BR /&gt;  What version of SAS are you running? If you have SAS 9.3 or higher then you DO have SGPLOT. In 9.2, SG procedures needed a SAS/GRAPH license. However with SAS 9.3, the SG Procedures and ODS Graphics were provided as part of Base SAS without needing a SAS/GRAPH license. So unless you are running a really, really old version of SAS, like SAS 8 or SAS 9.0 or 9.1, you should have the SG procedures available to you.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 03 Jan 2019 01:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524201#M142520</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-03T01:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524204#M142521</link>
      <description>WPS most likely.</description>
      <pubDate>Thu, 03 Jan 2019 01:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524204#M142521</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-03T01:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524205#M142522</link>
      <description>&lt;P&gt;If you're getting errors show the code and log. And you have to fix errors in the order it appears, so if SAS says a variable doesn't exist, it&amp;nbsp;likely doesn't exist.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's one place for sure though that is incorrect. This would create your groups incorrectly, all should else if, see my changes in red.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data income;
set train; (name of initial dataset I imported)
if Applicant_Inc &amp;lt;=5000 then incomeg=1;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/FONT&gt; if Applicant_Inc &amp;lt;=8000 then incomeg=2;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/FONT&gt; if Applicant_Inc &amp;lt;=16000 then incomeg=3;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/FONT&gt; incomeg=4;

&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;format incomeg group.;&lt;/STRONG&gt;&lt;/FONT&gt;
run;&lt;/PRE&gt;
&lt;P&gt;You also seem to be applying the format to the original variable, applicant_in instead of the recoded variable. One way to avoid these logical errors is to comment your code and that forces you to think through what you're doing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have access to GCHART so cannot assist beyond this. A stacked bar chart should be relatively easy though, you can find a lot of example on Robslink.com, in particular the one with the Excel version of graphs will help you out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Also, not sure how you can have a test set that does not have your outcome to verify it. In that case it doesn't really appear to be a 'test' data set, but a scoring data set or predicted values. You don't actually know how accurate it is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm doing some predictive modeling (with Logistic Regression) and I'm at the stage of doing some bivariate analysis. I want to visualize this analysis but I don't have access to proc sgplot, just proc gchart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The situation:&lt;/STRONG&gt; I have a column/variable with an applicant's income (one of the predictors), and I want to do some analysis of this variable by comparing to the response variable (what is being predicted)..Loan_Status (Yes or No ).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What have I done:&lt;/STRONG&gt; I have just imported the train and test data-sets. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The only difference is that the train data-set has the response variable. (Loan_Status)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The problem: &lt;/STRONG&gt;In the existing train/test datasets, I just have all the applicants income, but what I would want to do is create 4 different bins (Low, Average, High, Very High) income groups and then compare it to the Loan_Status. I want to see some stacked bars. &lt;STRONG&gt;I've attached an image of what I want.&amp;nbsp;&lt;/STRONG&gt; Now I know I can use proc format to create these bins..but I'm not sure how to then link this format to an existing data-set?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I created this line of code: But I keep getting errors. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;One error is that no such variable such as value exists. There might be other errors in the code.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;/P&gt;
&lt;P&gt;value group&lt;/P&gt;
&lt;P&gt;1 = 'Low'&lt;/P&gt;
&lt;P&gt;2 = 'Average'&lt;/P&gt;
&lt;P&gt;3 = 'High'&lt;/P&gt;
&lt;P&gt;4 = 'Very High'&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data income;&lt;BR /&gt;set train; &lt;STRONG&gt;(name of initial dataset I imported)&lt;/STRONG&gt;&lt;BR /&gt;if Applicant_Inc &amp;lt;=5000 then incomeg=1;&lt;BR /&gt;if Applicant_Inc &amp;lt;=8000 then incomeg=2;&lt;BR /&gt;if Applicant_Inc &amp;lt;=16000 then incomeg=3;&lt;BR /&gt;else incomeg=4;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gchart data=income;&lt;/P&gt;
&lt;P&gt;format Applicant_Inc group.;&lt;/P&gt;
&lt;P&gt;vbar Applicant_Inc /&lt;/P&gt;
&lt;P&gt;coutline=black&lt;/P&gt;
&lt;P&gt;subgroup=Loan_Status&lt;/P&gt;
&lt;P&gt;sumvar=value&lt;/P&gt;
&lt;P&gt;legend=legend1&lt;/P&gt;
&lt;P&gt;type=sum&lt;/P&gt;
&lt;P&gt;width=8&lt;/P&gt;
&lt;P&gt;maxis=axis1&lt;/P&gt;
&lt;P&gt;raxis=axis2&lt;/P&gt;
&lt;P&gt;discrete;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Income.png" style="width: 389px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25954iA415DAFA32AFDABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Income.png" alt="Income.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 01:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524205#M142522</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-03T01:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524295#M142562</link>
      <description>&lt;P&gt;Thanks, Reeza. Here is the full error code. I am not surprised that there is an error as Loan_Status is part of the train file I imported (its called train) but I'm not reading that dataset at all here. It also says that it can't find the value variable..which is part of the proc format. This is the main problem I'm having..how do I associate this proc format, theif-else logic, the gchart, to the initial dataset (train) that I imported?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;21 proc format;&lt;BR /&gt;22&lt;BR /&gt;23 value group&lt;BR /&gt;24&lt;BR /&gt;25 1 = 'Low'&lt;BR /&gt;26&lt;BR /&gt;27 2 = 'Average'&lt;BR /&gt;28&lt;BR /&gt;29 3 = 'High'&lt;BR /&gt;30&lt;BR /&gt;31 4 = 'Very High'&lt;BR /&gt;32 ;&lt;BR /&gt;NOTE: Format group output&lt;BR /&gt;33 run;&lt;BR /&gt;NOTE: Procedure format step took :&lt;BR /&gt;real time : 0.003&lt;BR /&gt;cpu time : 0.000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;34&lt;BR /&gt;35 data income;&lt;BR /&gt;36 if Applicant_Inc &amp;lt;=5000 then incomeg=1;&lt;BR /&gt;37 else if Applicant_Inc &amp;lt;=8000 then incomeg=2;&lt;BR /&gt;38 else if Applicant_Inc &amp;lt;=16000 then incomeg=3;&lt;BR /&gt;39 else incomeg=4;&lt;BR /&gt;40 format incomeg group.;&lt;BR /&gt;41 run;&lt;BR /&gt;NOTE: Variable "Applicant_Inc" may not be initialized&lt;/P&gt;&lt;P&gt;NOTE: Data set "WORK.income" has 1 observation(s) and 2 variable(s)&lt;BR /&gt;NOTE: The data step took :&lt;BR /&gt;real time : 0.004&lt;BR /&gt;cpu time : 0.000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;42&lt;BR /&gt;43 proc gchart data=income;&lt;BR /&gt;44&lt;BR /&gt;45 format incomeg group.;&lt;BR /&gt;46&lt;BR /&gt;47 vbar Applicant_Inc /&lt;BR /&gt;48&lt;BR /&gt;49 coutline=black&lt;BR /&gt;50&lt;BR /&gt;51 subgroup=Loan_Status&lt;BR /&gt;^&lt;BR /&gt;ERROR: Variable "Loan_Status" not found&lt;BR /&gt;52&lt;BR /&gt;53 sumvar=value&lt;BR /&gt;^&lt;BR /&gt;ERROR: Variable "value" not found&lt;BR /&gt;54&lt;BR /&gt;55 legend=legend1&lt;BR /&gt;56&lt;BR /&gt;57 type=sum&lt;BR /&gt;58&lt;BR /&gt;59 width=8&lt;BR /&gt;60&lt;BR /&gt;61 maxis=axis1&lt;BR /&gt;62&lt;BR /&gt;63 raxis=axis2&lt;BR /&gt;64&lt;BR /&gt;65 discrete;&lt;BR /&gt;NOTE: Statements not executed because of errors detected&lt;BR /&gt;66&lt;BR /&gt;67 run;&lt;BR /&gt;NOTE: Procedure gchart step took :&lt;BR /&gt;real time : 0.002&lt;BR /&gt;cpu time : 0.000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;68 quit; run;&lt;BR /&gt;69 ODS _ALL_ CLOSE;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 15:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524295#M142562</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-01-03T15:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524318#M142577</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;Thanks, Reeza. Here is the full error code. I am not surprised that there is an error as Loan_Status is part of the train file I imported (its called train) but I'm not reading that dataset at all here. It also says that it can't find the value variable..which is part of the proc format. This is the main problem I'm having..how do I associate this proc format, theif-else logic, the gchart, to the initial dataset (train) that I imported?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;51 subgroup=Loan_Status&lt;BR /&gt;^&lt;BR /&gt;ERROR: Variable "Loan_Status" not found&lt;BR /&gt;52&lt;BR /&gt;53 sumvar=value&lt;BR /&gt;^&lt;BR /&gt;ERROR: Variable "value" not found&lt;BR /&gt;54&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Those tell us that the variables Loan_status and Value are not in the data set you imported. Or in another step you have accidentally removed them. Or you intended to use a different variable and are using some example code and forgot to change the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have created and referenced the format GROUP but the variable incomeg with that format is not used in your Gchart code. I think you meant to use Incomeg instead of Applicant_inc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the income "bins" can be created directly with a format such as&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
value incomegrp
    0 -&amp;lt; 5000 = 'Low'
 5000 -&amp;lt; 8000 = 'Average'
 8000 -&amp;lt;16000 = 'High'
16000 -  high = 'Very High'
;
run; &lt;/PRE&gt;
&lt;P&gt;and apply that to format to the income variable, Applicant_inc in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 16:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524318#M142577</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-03T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524423#M142612</link>
      <description>&lt;P&gt;Thank you very much. Really useful information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one final question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the image of the stacked bar that I attached in my first email. Look at the Y axis. It says percent. When I choose type=percent on my graph, it doesn't go from 0.1 to 1 but 0% to 100%. Is there an option to make it like the graph I attached?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, this might be related to that, but I would like the bars to be the same size (as in that pic)..so then that I can easily compare the Yes/No for Loan/Status among the different income bins.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 01:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524423#M142612</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-01-04T01:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524424#M142613</link>
      <description>&lt;P&gt;Use the WIDTH option to control your bar widths.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p0nse2mlct7rs3n1vam18wd3u1na.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p0nse2mlct7rs3n1vam18wd3u1na.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use an AXIS statement to control the Yaxis, documented here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p0rvgwbkch5iqsn1rghqth2dl59y.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p0rvgwbkch5iqsn1rghqth2dl59y.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using WPS, I don’t believe you ever answered that question about your SAS version, you’ll need to find the relevant section in their documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much. Really useful information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one final question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the image of the stacked bar that I attached in my first email. Look at the Y axis. It says percent. When I choose type=percent on my graph, it doesn't go from 0.1 to 1 but 0% to 100%. Is there an option to make it like the graph I attached?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this might be related to that, but I would like the bars to be the same size (as in that pic)..so then that I can easily compare the Yes/No for Loan/Status among the different income bins.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 01:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524424#M142613</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-04T01:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524627#M142679</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201537"&gt;@edasdfasdfasdfa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you very much. Really useful information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one final question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the image of the stacked bar that I attached in my first email. Look at the Y axis. It says percent. When I choose type=percent on my graph, it doesn't go from 0.1 to 1 but 0% to 100%. Is there an option to make it like the graph I attached?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this might be related to that, but I would like the bars to be the same size (as in that pic)..so then that I can easily compare the Yes/No for Loan/Status among the different income bins.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First would be to have an appropriate format assigned to the YAXIS variable.&amp;nbsp;You may have done something&amp;nbsp;in a prior step that assigned a PERCENT format to your y variable. Try adding a FORMAT statement that uses something like F3.1 to show one decimal.&lt;/P&gt;
&lt;P&gt;In GCHART you would&amp;nbsp;provide&amp;nbsp;finer control over values displayed at tick marks and&amp;nbsp;which by creating an AXIS statement with ORDER list. In SGPLOT the YAXIS statement allows setting a list of values but you would still want an appropriate format to show 1 versus 100%. Both of the axis value lists allow syntax such as 0 to 1 by .1 to create 11 axis tick marks with values of 0, 0.1, 0.2.&lt;/P&gt;
&lt;P&gt;There are lots of worked examples in the online code, at&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/sassamples/graphgallery/index.html" target="_blank"&gt;http://support.sas.com/sassamples/graphgallery/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/" target="_blank"&gt;http://robslink.com/SAS/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 17:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524627#M142679</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-04T17:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524657#M142691</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried multiple things using AXIS but it keeps changing my X axis not Y. Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gchart data=combineincome;&lt;/P&gt;&lt;P&gt;format Total_Income incomegrp.;&lt;/P&gt;&lt;P&gt;vbar Total_Income /&lt;/P&gt;&lt;P&gt;coutline=black&lt;/P&gt;&lt;P&gt;subgroup=Loan_Status&lt;/P&gt;&lt;P&gt;legend=legend1&lt;/P&gt;&lt;P&gt;type=percent&lt;/P&gt;&lt;P&gt;width=8&lt;/P&gt;&lt;P&gt;maxis=axis1&lt;/P&gt;&lt;P&gt;raxis=axis2&lt;BR /&gt;&lt;BR /&gt;discrete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 19:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524657#M142691</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-01-04T19:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524680#M142703</link>
      <description>Show what you've tried. I don't see an axis statement.</description>
      <pubDate>Fri, 04 Jan 2019 19:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524680#M142703</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-04T19:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524774#M142721</link>
      <description>The axis statement is at the bottom; It just messed up my X axis.&lt;BR /&gt;&lt;BR /&gt;proc gchart data=combineincome;&lt;BR /&gt;&lt;BR /&gt;format Total_Income incomegrp.;&lt;BR /&gt;&lt;BR /&gt;vbar Total_Income /&lt;BR /&gt;&lt;BR /&gt;coutline=black&lt;BR /&gt;&lt;BR /&gt;subgroup=Loan_Status&lt;BR /&gt;&lt;BR /&gt;legend=legend1&lt;BR /&gt;&lt;BR /&gt;type=percent&lt;BR /&gt;&lt;BR /&gt;width=8&lt;BR /&gt;&lt;BR /&gt;maxis=axis1&lt;BR /&gt;&lt;BR /&gt;raxis=axis2&lt;BR /&gt;&lt;BR /&gt;discrete;&lt;BR /&gt;&lt;BR /&gt;axis order=(0 to 1 by .2) value=(height=3pct c=blue tick=1 "");&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Jan 2019 00:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524774#M142721</guid>
      <dc:creator>edasdfasdfasdfa</dc:creator>
      <dc:date>2019-01-05T00:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524776#M142722</link>
      <description>The log is ok with that? Axis statements are not part of the PROC and should go before. I don’t think your value options are correct, but again, don’t have it to test.</description>
      <pubDate>Sat, 05 Jan 2019 01:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524776#M142722</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-05T01:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to PROC sgplot; need different income bins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524777#M142723</link>
      <description>And you never assign it to an axis either. Review the docs on how to point it to your axis.</description>
      <pubDate>Sat, 05 Jan 2019 01:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Alternative-to-PROC-sgplot-need-different-income-bins/m-p/524777#M142723</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-05T01:27:46Z</dc:date>
    </item>
  </channel>
</rss>

