<?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: Perpendicular error bars in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620925#M19367</link>
    <description>&lt;P&gt;Okay, but ... do you have the values of the perpendicular projections onto the line?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 17:47:17 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-01-29T17:47:17Z</dc:date>
    <item>
      <title>Perpendicular error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620854#M19364</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I work on an analysis of agreement between two independent measurements from the same subjects (errors-variables-model, Demming regression). I want show the deviations from the identity line (Y1=Y2) as needles perpendicular to the 45 degree line. I cannot use the standard error bars option in SGPLOT.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620854#M19364</guid>
      <dc:creator>carstenenevoldsen</dc:creator>
      <dc:date>2020-01-29T16:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Perpendicular error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620866#M19365</link>
      <description>&lt;P&gt;Since you didn't really tell us how you did the Deming regression, I will have to assume that you have the original data point, and the orthogonal projection onto the regression line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have these, then you can use the SG annotation feature that works with PROC SGPLOT, specifically the LINE function or the &lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1bc4fmhpa3dwxn1pgog7fau7m7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;%SGLINE macro&lt;/A&gt;. A brief example is here: &lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0eben23mwnl3dn1cm95zbks0eea.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0462bjuifkodon1evuqv5fwe1k2"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0eben23mwnl3dn1cm95zbks0eea.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0462bjuifkodon1evuqv5fwe1k2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620866#M19365</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-29T16:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perpendicular error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620893#M19366</link>
      <description>Hi PaigeMiller,&lt;BR /&gt;Thanks for prompt reply.&lt;BR /&gt;I used Wicklin's IML code:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/01/07/deming-regression-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/01/07/deming-regression-sas.html&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620893#M19366</guid>
      <dc:creator>carstenenevoldsen</dc:creator>
      <dc:date>2020-01-29T16:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Perpendicular error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620925#M19367</link>
      <description>&lt;P&gt;Okay, but ... do you have the values of the perpendicular projections onto the line?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 17:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620925#M19367</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-29T17:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Perpendicular error bars</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620982#M19370</link>
      <description>&lt;P&gt;If (x, y) is one of your data points, you can use calculus to show that the perpendicular distance to the identity line is the point&lt;/P&gt;
&lt;P&gt;( (x+y)/2,&amp;nbsp;(x+y)/2).&amp;nbsp; So just write a DATA step and use the VECTR statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input x y;
datalines;
1 2
3 5
2 3
2 1
4 5
5 3
3 4
4 4
4 .
;

data Want;
set Have;
x1 = (x + y)/2;
run;

proc sgplot data=Want aspectratio=1;
scatter x=x y=y;
vector x=x y=y / xorigin=x1 yorigin=x1 noarrowheads;
lineparm x=0 y=0 slope=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 20:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Perpendicular-error-bars/m-p/620982#M19370</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-29T20:27:49Z</dc:date>
    </item>
  </channel>
</rss>

