<?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: Complex Where Clause, Cutting Off At An Angle in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286626#M58816</link>
    <description>&lt;PRE&gt;

data class;
 set sashelp.class;
run;
proc summary data=class;
var weight height;
output out=per(drop=_:) p90=p_weight p_height;
run;
data temp;
 set per;
 slope=-p_height/p_weight;
run;
data want;
 set class temp;
run;

proc sgplot data=want;
scatter x=weight y=height/ datalabel=name;
lineparm x=p_weight y=p_height slope=slope / lineattrs=graphdata2(thickness=4);
run;

&lt;/PRE&gt;</description>
    <pubDate>Sun, 24 Jul 2016 02:52:40 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-07-24T02:52:40Z</dc:date>
    <item>
      <title>Complex Where Clause, Cutting Off At An Angle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286612#M58809</link>
      <description>&lt;P&gt;What might be the best way to cut out all observations left of a particular line on a scatter plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know the equation for the line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Line on scatterplot&lt;/P&gt;
&lt;P&gt;&lt;IMG style="width: 600px; height: 400px;" src="https://communities.sas.com/t5/forums/postpage/choose-node/true/interaction-style/line.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12772i32729C77D73CE077/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="line.png" title="line.png" /&gt;</description>
      <pubDate>Sat, 23 Jul 2016 23:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286612#M58809</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2016-07-23T23:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Where Clause, Cutting Off At An Angle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286620#M58812</link>
      <description>&lt;P&gt;Find the equation of the line, you only need two points.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recreate your graph with grid lines at a finer interal to help you find the equation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 01:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286620#M58812</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-24T01:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Where Clause, Cutting Off At An Angle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286623#M58813</link>
      <description>&lt;PRE&gt;
You need to calculate that line's start point and slope on your own.
Calculated X and Y 's 90 percentile Maybe.




proc sgplot data=sashelp.class;
scatter x=weight y=height/ datalabel=name;
lineparm x=120 y=0 slope=-1 / lineattrs=graphdata2(thickness=4);
run;

&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Jul 2016 02:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286623#M58813</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-24T02:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Where Clause, Cutting Off At An Angle</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286626#M58816</link>
      <description>&lt;PRE&gt;

data class;
 set sashelp.class;
run;
proc summary data=class;
var weight height;
output out=per(drop=_:) p90=p_weight p_height;
run;
data temp;
 set per;
 slope=-p_height/p_weight;
run;
data want;
 set class temp;
run;

proc sgplot data=want;
scatter x=weight y=height/ datalabel=name;
lineparm x=p_weight y=p_height slope=slope / lineattrs=graphdata2(thickness=4);
run;

&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Jul 2016 02:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Complex-Where-Clause-Cutting-Off-At-An-Angle/m-p/286626#M58816</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-24T02:52:40Z</dc:date>
    </item>
  </channel>
</rss>

