<?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: Plotting Frequencies in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167925#M12245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example using SASHELP.CLASS. This assumes you have SAS 9.3+ to use the STACKODS option and the concept that the average of a binary variable is the same as the percent (though that's not shown here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=sashelp.class stackods mean;&lt;/P&gt;&lt;P&gt;var age weight height;&lt;/P&gt;&lt;P&gt;ods table Summary=Summary1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=summary1;&lt;/P&gt;&lt;P&gt;vbarparm&amp;nbsp; category=variable response=mean;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Dec 2013 18:25:47 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-12-09T18:25:47Z</dc:date>
    <item>
      <title>Plotting Frequencies</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167923#M12243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This really shouldn't be so difficult. Maybe my brain is still in weekend mode. I have a table of students and four columns (Graduated, Transferred, Grad&amp;amp;Trans, GradOrTrans) that have 0 or 1 depending on if they graduated and/or transferred. How can I make a bargraph that shows the percentage of 1's in each column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 17:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167923#M12243</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-12-09T17:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Frequencies</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167924#M12244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this would work:&lt;/P&gt;&lt;P&gt;data in;&lt;/P&gt;&lt;P&gt;input status group $;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 G&lt;/P&gt;&lt;P&gt;1 T&lt;/P&gt;&lt;P&gt;1 G&amp;amp;T&lt;/P&gt;&lt;P&gt;1 GorT&lt;/P&gt;&lt;P&gt;1 G&lt;/P&gt;&lt;P&gt;1 G&lt;/P&gt;&lt;P&gt;1 G&lt;/P&gt;&lt;P&gt;0 T&lt;/P&gt;&lt;P&gt;0 T&lt;/P&gt;&lt;P&gt;0 GorT &lt;/P&gt;&lt;P&gt;0 GorT&lt;/P&gt;&lt;P&gt;0 GorT&lt;/P&gt;&lt;P&gt;1 GorT&lt;/P&gt;&lt;P&gt;1 GorT&lt;/P&gt;&lt;P&gt;1 GorT&lt;/P&gt;&lt;P&gt;1 G&amp;amp;T&lt;/P&gt;&lt;P&gt;0 G&amp;amp;T&lt;/P&gt;&lt;P&gt;0 G&amp;amp;T&lt;/P&gt;&lt;P&gt;0 G&amp;amp;T&lt;/P&gt;&lt;P&gt;0 G&amp;amp;T&lt;/P&gt;&lt;P&gt;0 G&lt;/P&gt;&lt;P&gt;1 T&lt;/P&gt;&lt;P&gt;1 T&lt;/P&gt;&lt;P&gt;1 G&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA = IN;TABLES GROUP;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GCHART DATA = IN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBAR GROUP/SUMVAR = STATUS PCT;&lt;/P&gt;&lt;P&gt;RUN;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more options to enhance the graph...but to get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 18:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167924#M12244</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-12-09T18:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Frequencies</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167925#M12245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example using SASHELP.CLASS. This assumes you have SAS 9.3+ to use the STACKODS option and the concept that the average of a binary variable is the same as the percent (though that's not shown here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=sashelp.class stackods mean;&lt;/P&gt;&lt;P&gt;var age weight height;&lt;/P&gt;&lt;P&gt;ods table Summary=Summary1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=summary1;&lt;/P&gt;&lt;P&gt;vbarparm&amp;nbsp; category=variable response=mean;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 18:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167925#M12245</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-12-09T18:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Frequencies</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167926#M12246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I learned something new today! Makes it all worthwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 19:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Plotting-Frequencies/m-p/167926#M12246</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-12-09T19:54:05Z</dc:date>
    </item>
  </channel>
</rss>

