<?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: proc univariate probplot &amp;amp; class statements SAS normal lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-univariate-probplot-amp-class-statements-SAS-normal-lines/m-p/847524#M335077</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would open a Technical Support track for this.&lt;/P&gt;
&lt;P&gt;I notice the same (unexpected) behavior in below program (only one normal line instead of three).&lt;BR /&gt;I have also found this usage note , but it does not solve your problem :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Usage Note 24299: Plotting more than one theoretical distribution on one graph&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/299.html" target="_blank"&gt;https://support.sas.com/kb/24/299.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* If you have several variables you want to overlay, 
first reshape the data set to stack the vars and create a CLASS or indicator variable; 
data one;
  do i=1 to 25;
   a=rannor(32409);
   b=2+1.5*rannor(32409);
   c=ranuni(32409);
   output;
  end;
  drop i;
run;

* add a unique var (if you don't already have one in the data set) to use in PROC TRANSPOSE; 
data one;
  set one;
  id=_n_;
run;

proc transpose data=one out=two(rename=(_NAME_=Source Col1=Measure) drop=ID);
  by ID;
run;

ods listing close;
ods html;
ods graphics on;
proc univariate data=two noprint;
  label source=;
  class source;
  var measure;
  probplot measure/ NORMAL (mu=est sigma=est) overlay;
  qqplot   measure/ overlay;
  cdfplot  measure/ overlay;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 23:36:13 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-12-02T23:36:13Z</dc:date>
    <item>
      <title>proc univariate probplot &amp; class statements SAS normal lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-univariate-probplot-amp-class-statements-SAS-normal-lines/m-p/847463#M335053</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I code my probplot options in my proc univariate in order to get&amp;nbsp;male/female distinct normal line ?&lt;/P&gt;&lt;P&gt;With my following code, I get only one normal line based on female statistics of BodyTemp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on/width=1000;&lt;/P&gt;&lt;P&gt;proc univariate data=Statdata.NormTemp;&lt;BR /&gt;var BodyTemp;&lt;BR /&gt;class Gender;&lt;BR /&gt;id ID;&amp;nbsp;&lt;BR /&gt;histogram BodyTemp / NORMAL(color=blue) overlay;&lt;BR /&gt;probplot BodyTemp / NORMAL (mu=est sigma=est) overlay;&lt;BR /&gt;inset n='number of measurements recorded' mean median std='Standard Deviation' skewness kurtosis / position=ne;&lt;BR /&gt;title "Assessing normality of Body temperature (in celsius) by Gender";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Laura B&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 16:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-univariate-probplot-amp-class-statements-SAS-normal-lines/m-p/847463#M335053</guid>
      <dc:creator>LauraBona92</dc:creator>
      <dc:date>2022-12-02T16:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc univariate probplot &amp; class statements SAS normal lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-univariate-probplot-amp-class-statements-SAS-normal-lines/m-p/847524#M335077</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would open a Technical Support track for this.&lt;/P&gt;
&lt;P&gt;I notice the same (unexpected) behavior in below program (only one normal line instead of three).&lt;BR /&gt;I have also found this usage note , but it does not solve your problem :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Usage Note 24299: Plotting more than one theoretical distribution on one graph&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/299.html" target="_blank"&gt;https://support.sas.com/kb/24/299.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* If you have several variables you want to overlay, 
first reshape the data set to stack the vars and create a CLASS or indicator variable; 
data one;
  do i=1 to 25;
   a=rannor(32409);
   b=2+1.5*rannor(32409);
   c=ranuni(32409);
   output;
  end;
  drop i;
run;

* add a unique var (if you don't already have one in the data set) to use in PROC TRANSPOSE; 
data one;
  set one;
  id=_n_;
run;

proc transpose data=one out=two(rename=(_NAME_=Source Col1=Measure) drop=ID);
  by ID;
run;

ods listing close;
ods html;
ods graphics on;
proc univariate data=two noprint;
  label source=;
  class source;
  var measure;
  probplot measure/ NORMAL (mu=est sigma=est) overlay;
  qqplot   measure/ overlay;
  cdfplot  measure/ overlay;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 23:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-univariate-probplot-amp-class-statements-SAS-normal-lines/m-p/847524#M335077</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-12-02T23:36:13Z</dc:date>
    </item>
  </channel>
</rss>

