<?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: Plot inquiry? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829662#M327798</link>
    <description>&lt;P&gt;What is "IQR 90"? Does it refer to the variable on the X-axis or the variable on the Y-axis, or something else?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Repeating:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show us an example of this plot?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 13:51:17 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-08-22T13:51:17Z</dc:date>
    <item>
      <title>Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829659#M327795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to get a scatter plot with a mean for the middle line and 90% for the outline.&amp;nbsp; Is there a way to approach it?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 13:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829659#M327795</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-08-22T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829660#M327796</link>
      <description>&lt;P&gt;Mean of what? 90% of what? Can you show us an example of this plot?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 13:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829660#M327796</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-22T13:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829661#M327797</link>
      <description>mean for x, IQR 90</description>
      <pubDate>Mon, 22 Aug 2022 13:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829661#M327797</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-08-22T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829662#M327798</link>
      <description>&lt;P&gt;What is "IQR 90"? Does it refer to the variable on the X-axis or the variable on the Y-axis, or something else?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Repeating:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show us an example of this plot?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 13:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829662#M327798</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-22T13:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829665#M327799</link>
      <description>Y IQR 90</description>
      <pubDate>Mon, 22 Aug 2022 14:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829665#M327799</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-08-22T14:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829674#M327800</link>
      <description>&lt;P&gt;IQR is usually interquartile range, 90 is usually 90th percentile.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which of the two are you asking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, this can be done, use REFLINE/BAND statements and pre-calculate your statistics and add them to the data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 15:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829674#M327800</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-22T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829675#M327801</link>
      <description>&lt;P&gt;So you want a scatter plot with mean of X and IQR 90 of Y? You still have not explained what IQR 90 is.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 15:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829675#M327801</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-22T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829683#M327803</link>
      <description>First, I would like to get the scatter plot with X mean with Y IQR.   Second, I would like to obtain the X list over 90% Y.   The latter doesn't need to be plotted.</description>
      <pubDate>Mon, 22 Aug 2022 15:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829683#M327803</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-08-22T15:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829688#M327804</link>
      <description>&lt;P&gt;That's much clearer, but really, that should have been your original explanation. We shouldn't have to repeatedly ask for details and repeatedly ask for clarification. We request that from now on you provide much clearer and more complete problem descriptions in your original problem description.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing I am assuming is that for IQR, you want the plot to show the 25%-ile and 75%-ile, and not the actual IQR, which is the subtraction of the two. But you didn't really say that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=sashelp.class;
    var height weight;
    output out=_stats_ mean(height)=x_mean p25(weight)=y_p25 p75(weight)=y_p75 p90(weight)=y_p90;
run;
data _null_;
	set _stats_;
	call symputx('x_mean',x_mean);
	call symputx('y_p25',y_p25);
	call symputx('y_p75',y_p75);
run;
proc sgplot data=sashelp.class;
    scatter x=height y=weight;
    refline &amp;amp;x_mean/axis=x;
    refline &amp;amp;y_p25 &amp;amp;y_p75/axis=y;
run;&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;To find X above the 90th percentile of Y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    if _n_=1 then set _stats_ (keep=y_p90);
    set sashelp.class;
    where x&amp;gt;y_p90;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 16:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829688#M327804</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-22T16:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Plot inquiry?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829697#M327810</link>
      <description>Thanks.  Sometimes, I'm unsure what I want until the experts guild me.</description>
      <pubDate>Mon, 22 Aug 2022 16:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Plot-inquiry/m-p/829697#M327810</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-08-22T16:47:40Z</dc:date>
    </item>
  </channel>
</rss>

