<?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: q-q plot using SGPlot or SG procedures in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/318288#M11155</link>
    <description>&lt;P&gt;Yes, you can do it. You need to compute the quantiles first. If you want a normal Q-Q plot, use PROC RANK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* get sample mean and stddev */
proc means data=sashelp.class mean std;
var weight;
run;

proc rank data=sashelp.class normal=blom out=QQ;
   var weight;
   ranks Quantile;
run;
 
proc sgplot data=QQ noautolegend;
   scatter x=Quantile y=weight;
   lineparm x=0 y=100 slope=22.77; /* y-int=mean slope=stddev */
   xaxis label="Normal Quantiles";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more discussion, see&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2016/11/23/sampling-variation-small-samples.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2016/11/23/sampling-variation-small-samples.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and for the general case of Q-Q plots for arbitrary distributions, see&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2011/10/28/modeling-the-distribution-of-data-create-a-qq-plot.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2011/10/28/modeling-the-distribution-of-data-create-a-qq-plot.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 15:32:46 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-12-12T15:32:46Z</dc:date>
    <item>
      <title>q-q plot using SGPlot or SG procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72918#M2620</link>
      <description>Hi all,&lt;BR /&gt;
         I want to create a normal probability plot or qq plot using SG procedures. &lt;BR /&gt;
&lt;BR /&gt;
          I know I can do it using proc univariate, but is it possible using SG procedures.&lt;BR /&gt;
&lt;BR /&gt;
   Thank for all your help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Wed, 23 Sep 2009 16:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72918#M2620</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-09-23T16:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: q-q plot using SGPlot or SG procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72919#M2621</link>
      <description>Hey Amit,&lt;BR /&gt;
&lt;BR /&gt;
ODS GRAPHICS is also supported in PROC UNIVARIATE.  Is there a particular reason that you need to use the SGPLOT?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 23 Sep 2009 17:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72919#M2621</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2009-09-23T17:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: q-q plot using SGPlot or SG procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72920#M2622</link>
      <description>Hi Dan,&lt;BR /&gt;
             I am trying to develop a report for presentation. The Histogram in SGplot looks more clean than in proc univariate.&lt;BR /&gt;
Thats the reason I wanted to see if I replecate my q-q plot using proc sgplot.</description>
      <pubDate>Wed, 23 Sep 2009 17:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72920#M2622</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-09-23T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: q-q plot using SGPlot or SG procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72921#M2623</link>
      <description>Right now, we do not have a qqplot statement in SGPLOT.  However, if you turn on ODS GRAPHICS for UNIVARIATE, you should get a comparable histogram to the one from SGPLOT.  Give it a try and see what you think.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan&lt;BR /&gt;
&lt;BR /&gt;
ods graphics on;&lt;BR /&gt;
proc univariate data=sashelp.class;&lt;BR /&gt;
histogram weight;&lt;BR /&gt;
run;&lt;BR /&gt;
ods graphics off; &lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=sashelp.class;&lt;BR /&gt;
histogram weight;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 23 Sep 2009 17:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/72921#M2623</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2009-09-23T17:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: q-q plot using SGPlot or SG procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/318284#M11153</link>
      <description>&lt;P&gt;I just ran the two histograms. &amp;nbsp;The ODS graphics statement look a little better (better shading), but they were very similar.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/318284#M11153</guid>
      <dc:creator>BarryDeCicco</dc:creator>
      <dc:date>2016-12-12T15:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: q-q plot using SGPlot or SG procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/318288#M11155</link>
      <description>&lt;P&gt;Yes, you can do it. You need to compute the quantiles first. If you want a normal Q-Q plot, use PROC RANK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* get sample mean and stddev */
proc means data=sashelp.class mean std;
var weight;
run;

proc rank data=sashelp.class normal=blom out=QQ;
   var weight;
   ranks Quantile;
run;
 
proc sgplot data=QQ noautolegend;
   scatter x=Quantile y=weight;
   lineparm x=0 y=100 slope=22.77; /* y-int=mean slope=stddev */
   xaxis label="Normal Quantiles";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more discussion, see&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2016/11/23/sampling-variation-small-samples.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2016/11/23/sampling-variation-small-samples.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and for the general case of Q-Q plots for arbitrary distributions, see&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2011/10/28/modeling-the-distribution-of-data-create-a-qq-plot.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2011/10/28/modeling-the-distribution-of-data-create-a-qq-plot.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/q-q-plot-using-SGPlot-or-SG-procedures/m-p/318288#M11155</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-12T15:32:46Z</dc:date>
    </item>
  </channel>
</rss>

