<?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 plot row pct by variable in a histogram in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/plot-row-pct-by-variable-in-a-histogram/m-p/407833#M99411</link>
    <description>&lt;P&gt;Is there any way to plot one variable and the row pct for that variable by another (from proq freq) as histogram?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, I have 2 variables, one is continuous that I am treating categorically (1-20) and the other is a binary 0/1 variable. I want to plot the first variable on the x axis and the row percent for the category 1 as the y axis.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 21:00:55 GMT</pubDate>
    <dc:creator>Melk</dc:creator>
    <dc:date>2017-10-26T21:00:55Z</dc:date>
    <item>
      <title>plot row pct by variable in a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plot-row-pct-by-variable-in-a-histogram/m-p/407833#M99411</link>
      <description>&lt;P&gt;Is there any way to plot one variable and the row pct for that variable by another (from proq freq) as histogram?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, I have 2 variables, one is continuous that I am treating categorically (1-20) and the other is a binary 0/1 variable. I want to plot the first variable on the x axis and the row percent for the category 1 as the y axis.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 21:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plot-row-pct-by-variable-in-a-histogram/m-p/407833#M99411</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-10-26T21:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: plot row pct by variable in a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plot-row-pct-by-variable-in-a-histogram/m-p/407850#M99417</link>
      <description>&lt;P&gt;What kind of plot? Scatter, bar, pie, line something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may help to remember that the mean of 0/1 coded variable is the percent of 1 values. So with SGPLOT and Hbar or Vbar you could indicate the binary variable as the response variable and request the Stat=mean.&lt;/P&gt;
&lt;P&gt;If you must see % symbols then assign a percent format to the binary variable for the plot. No need to use Proc Freq.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other plots likely will require you to summarize the data, (hint: Proc means or Summary with your category variable as Class and the binary as a Var variable).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 22:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plot-row-pct-by-variable-in-a-histogram/m-p/407850#M99417</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-26T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: plot row pct by variable in a histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/plot-row-pct-by-variable-in-a-histogram/m-p/407853#M99419</link>
      <description>&lt;P&gt;worked beautifully - thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 22:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/plot-row-pct-by-variable-in-a-histogram/m-p/407853#M99419</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2017-10-26T22:18:09Z</dc:date>
    </item>
  </channel>
</rss>

