<?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 Proc gchart options in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130780#M260618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the following data set I have three variables bad xx and yy.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3164" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3164_pastedImage_0.png" style="width: 209px; height: 338px;" /&gt;&lt;/P&gt;&lt;P&gt;I want to make histograms of XX and YY such that at each level of&amp;nbsp; a variable say XX, I want to divide the column by proportion or percentage of bad=1 and bad=0.&lt;/P&gt;&lt;P&gt;My following attempts does this job but it divides each column by percentage of bad=0 and bad=1 w.r.t to all the&amp;nbsp; values of&amp;nbsp; XX.&lt;/P&gt;&lt;P&gt;For variable XX, I want bars of the&amp;nbsp; histogram at 2,4,6,8 and 10, however division of each bar should be done based on the number of bad=1/bad=0 within that level of XX.&lt;/P&gt;&lt;P&gt;If this can be done, all the vertical bars will have equal height, but get divided by percentage/proportion of bad values within that level of XX.&lt;/P&gt;&lt;P&gt;Using the following code&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3165" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3165_pastedImage_1.png" style="width: 241px; height: 137px;" /&gt;&lt;/P&gt;&lt;P&gt;I have this plot&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3166" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3166_pastedImage_2.png" style="width: 641px; height: 583px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, I am expecting some help from one of you experts.&lt;/P&gt;&lt;P&gt;Thanks again for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 01:11:44 GMT</pubDate>
    <dc:creator>rnmishra</dc:creator>
    <dc:date>2013-03-08T01:11:44Z</dc:date>
    <item>
      <title>Proc gchart options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130780#M260618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the following data set I have three variables bad xx and yy.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3164" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3164_pastedImage_0.png" style="width: 209px; height: 338px;" /&gt;&lt;/P&gt;&lt;P&gt;I want to make histograms of XX and YY such that at each level of&amp;nbsp; a variable say XX, I want to divide the column by proportion or percentage of bad=1 and bad=0.&lt;/P&gt;&lt;P&gt;My following attempts does this job but it divides each column by percentage of bad=0 and bad=1 w.r.t to all the&amp;nbsp; values of&amp;nbsp; XX.&lt;/P&gt;&lt;P&gt;For variable XX, I want bars of the&amp;nbsp; histogram at 2,4,6,8 and 10, however division of each bar should be done based on the number of bad=1/bad=0 within that level of XX.&lt;/P&gt;&lt;P&gt;If this can be done, all the vertical bars will have equal height, but get divided by percentage/proportion of bad values within that level of XX.&lt;/P&gt;&lt;P&gt;Using the following code&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3165" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3165_pastedImage_1.png" style="width: 241px; height: 137px;" /&gt;&lt;/P&gt;&lt;P&gt;I have this plot&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3166" alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/3166_pastedImage_2.png" style="width: 641px; height: 583px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, I am expecting some help from one of you experts.&lt;/P&gt;&lt;P&gt;Thanks again for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 01:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130780#M260618</guid>
      <dc:creator>rnmishra</dc:creator>
      <dc:date>2013-03-08T01:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130781#M260619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be looking for G100 which requires use of Group not subgroup. Since you posted pictures of code and note code I'm too lazy to retype the data example so I can't test.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 16:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130781#M260619</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-03-08T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130782#M260620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the code&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt; input Bad $ xx yy @@;&lt;/P&gt;&lt;P&gt; cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 10 5&lt;/P&gt;&lt;P&gt;0 6 5&lt;/P&gt;&lt;P&gt;1 6 7&lt;/P&gt;&lt;P&gt;1 8 3&lt;/P&gt;&lt;P&gt;1 4 1&lt;/P&gt;&lt;P&gt;0 6 9&lt;/P&gt;&lt;P&gt;0 8 9&lt;/P&gt;&lt;P&gt;0 4 7&lt;/P&gt;&lt;P&gt;0 2 5&lt;/P&gt;&lt;P&gt;1 2 7&lt;/P&gt;&lt;P&gt;1 8 3&lt;/P&gt;&lt;P&gt;1 4 5&lt;/P&gt;&lt;P&gt;0 6 3&lt;/P&gt;&lt;P&gt;0 8 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=have;&lt;/P&gt;&lt;P&gt; vbar xx yy/type=percent&lt;/P&gt;&lt;P&gt;&amp;nbsp; group=Bad;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 22:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130782#M260620</guid>
      <dc:creator>rnmishra</dc:creator>
      <dc:date>2013-03-08T22:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc gchart options</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130783#M260621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of SAS do you have? Can you use the SG graphical procedures, ie SGPLOT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 23:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-gchart-options/m-p/130783#M260621</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-03-08T23:10:13Z</dc:date>
    </item>
  </channel>
</rss>

