<?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: How do I get Normal quantiles? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-Normal-quantiles/m-p/589368#M168567</link>
    <description>&lt;P&gt;I think you gave me the answer that I need. All I would need to do is to replace the number in&amp;nbsp;&amp;nbsp;"by .025" in your example with 1/n where n is the number of observations in my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In response to your question:&lt;/P&gt;&lt;P&gt;I can get a qq plot in proc glm&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;proc glm plots=diagnostics;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model a=b c;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can also use Proc Univariate.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
   model a=b c;
   output out=data2 r=resid;
run;
proc univariate;
   var resid;
   qqplot resid;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plot is not exactly equivalent as the diagnostic plot in Proc GLM has a line to indicate a normal distribution.&lt;/P&gt;&lt;P&gt;The goal is not to generate a qq plot. The qq plot from proc glm shows a clear break point where the slope of the plotted residuals changes. There is a possible biological explanation for this where light levels are insufficient to maintain C4 photosynthesis. I need to identify that break point in the data to see if that explanation works or not.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 14:07:23 GMT</pubDate>
    <dc:creator>tebert</dc:creator>
    <dc:date>2019-09-17T14:07:23Z</dc:date>
    <item>
      <title>How do I get Normal quantiles?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-Normal-quantiles/m-p/589341#M168553</link>
      <description>&lt;P&gt;How do I generate a new varaible in my dataset that has the quanitles of the normal distribution such that when I graph the new variable and the residuals I would get the equivalent of the qqplot statement in proc Univariate?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 13:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-Normal-quantiles/m-p/589341#M168553</guid>
      <dc:creator>tebert</dc:creator>
      <dc:date>2019-09-17T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get Normal quantiles?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-Normal-quantiles/m-p/589347#M168556</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n0uhywbqfucg6qn18woziy41flqp.htm&amp;amp;locale=en" target="_self"&gt;Quantile Function&lt;/A&gt; to compute quantiles of the Normal Distribution like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data NormQuantiles;
    do x=.025 to .975 by .025;
        q=quantile('Normal', x, 0, 1);
        output;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regarding replicating a qqplot, please specify what model you run. Makes it easier to help you&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 13:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-Normal-quantiles/m-p/589347#M168556</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-17T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get Normal quantiles?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-Normal-quantiles/m-p/589368#M168567</link>
      <description>&lt;P&gt;I think you gave me the answer that I need. All I would need to do is to replace the number in&amp;nbsp;&amp;nbsp;"by .025" in your example with 1/n where n is the number of observations in my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In response to your question:&lt;/P&gt;&lt;P&gt;I can get a qq plot in proc glm&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;proc glm plots=diagnostics;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model a=b c;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can also use Proc Univariate.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm;
   model a=b c;
   output out=data2 r=resid;
run;
proc univariate;
   var resid;
   qqplot resid;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plot is not exactly equivalent as the diagnostic plot in Proc GLM has a line to indicate a normal distribution.&lt;/P&gt;&lt;P&gt;The goal is not to generate a qq plot. The qq plot from proc glm shows a clear break point where the slope of the plotted residuals changes. There is a possible biological explanation for this where light levels are insufficient to maintain C4 photosynthesis. I need to identify that break point in the data to see if that explanation works or not.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-Normal-quantiles/m-p/589368#M168567</guid>
      <dc:creator>tebert</dc:creator>
      <dc:date>2019-09-17T14:07:23Z</dc:date>
    </item>
  </channel>
</rss>

