<?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: Display histogram and descriptive stats ( mean N ) with proc Sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72939#M2625</link>
    <description>The descriptive statistics are not automatically available to you in SGPLOT; however, if you know the values, you can add them to the graph using the INSET statement in SGPLOT.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
    <pubDate>Wed, 23 Sep 2009 17:29:04 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2009-09-23T17:29:04Z</dc:date>
    <item>
      <title>Display histogram and descriptive stats ( mean N ) with proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72938#M2624</link>
      <description>Hi All,&lt;BR /&gt;
          I want to generate a histogram with descriptive stats ( mean, N, # missing etc) using proc sgplot.&lt;BR /&gt;
         This will be similiar to the inset statement in proc univariate.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Wed, 23 Sep 2009 16:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72938#M2624</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-09-23T16:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display histogram and descriptive stats ( mean N ) with proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72939#M2625</link>
      <description>The descriptive statistics are not automatically available to you in SGPLOT; however, if you know the values, you can add them to the graph using the INSET statement in SGPLOT.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 23 Sep 2009 17:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72939#M2625</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2009-09-23T17:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display histogram and descriptive stats ( mean N ) with proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72940#M2626</link>
      <description>Hi Dan,&lt;BR /&gt;
            Thanks a lot. Can I use macro variables to output the descriptive statistics. &lt;BR /&gt;
                Can you show me a dummy example where I get say mean from proc means and display it with the histogram.&lt;BR /&gt;
&lt;BR /&gt;
          Thanks a lot for all your help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Wed, 23 Sep 2009 17:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72940#M2626</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-09-23T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display histogram and descriptive stats ( mean N ) with proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72941#M2627</link>
      <description>Here you go:&lt;BR /&gt;
&lt;BR /&gt;
proc means data=sashelp.class noprint;&lt;BR /&gt;
class age sex;&lt;BR /&gt;
var weight;&lt;BR /&gt;
output out=meanval mean=;&lt;BR /&gt;
ways 1;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set meanval;&lt;BR /&gt;
if ((age eq .) and (sex="F")) then&lt;BR /&gt;
   call symput("FMEAN", put(weight, best6.));&lt;BR /&gt;
if ((age eq .) and (sex="M")) then&lt;BR /&gt;
   call symput("MMEAN", put(weight, best6.));&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=sashelp.class;&lt;BR /&gt;
vbar age / response=weight stat=mean;&lt;BR /&gt;
inset ("Female"="&amp;amp;FMEAN" "Male"="&amp;amp;MMEAN") / border title="Avg. Weight by Gender";&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 23 Sep 2009 19:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72941#M2627</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2009-09-23T19:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Display histogram and descriptive stats ( mean N ) with proc Sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72942#M2628</link>
      <description>Hi Dan,&lt;BR /&gt;
            Thanks a lot.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Wed, 23 Sep 2009 20:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Display-histogram-and-descriptive-stats-mean-N-with-proc-Sgplot/m-p/72942#M2628</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-09-23T20:04:42Z</dc:date>
    </item>
  </channel>
</rss>

