<?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: Identity line for regression in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Identity-line-for-regression/m-p/629710#M20774</link>
    <description>&lt;P&gt;Thank you, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;. In order to keep the ANOVA and parameter estimates that I'd get from PROC REG, I'm thinking I'll just piece the output from PROC REG and PROC SGPLOT together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 input id weight_1 weight_2;
 cards;
1 80 81
2 150 155
3 190 170
4 201 203
5 204 211
6 180 188
7 170 171
8 177 169
9 90 82
10 99 101
;
run;


ods trace on;
proc reg data=have;
 model weight_1 = weight_2;
 
 ods exclude diagnosticspanel;
 ods exclude residualplot;
 ods exclude fitplot;
run;


proc sgplot data=have;
 title "Fit Plot for weight_1";
 reg y=weight_1 x=weight_2 / cli clm;
 lineparm x=0 y=0 slope=1 / lineattrs=(color=red);
 xaxis values=(50 to 250 by 50);
 yaxis values=(50 to 250 by 50);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Mar 2020 05:26:54 GMT</pubDate>
    <dc:creator>bkq32</dc:creator>
    <dc:date>2020-03-05T05:26:54Z</dc:date>
    <item>
      <title>Identity line for regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identity-line-for-regression/m-p/629699#M20772</link>
      <description>&lt;P&gt;I'm running a simple linear regression of WEIGHT_1 vs WEIGHT_2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=have;
 model weight_1 = weight_2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How can I add an identity line to the fit plot and make the axis ranges the same?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 04:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identity-line-for-regression/m-p/629699#M20772</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-03-05T04:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Identity line for regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identity-line-for-regression/m-p/629701#M20773</link>
      <description>Consider using SGPLOT instead?&lt;BR /&gt;You can use the REG statement, then use a LINEPARM statement for the identity line and you have full control of the axis using the XAXIS/YAXIS statements. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Mar 2020 04:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identity-line-for-regression/m-p/629701#M20773</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-05T04:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identity line for regression</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Identity-line-for-regression/m-p/629710#M20774</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;. In order to keep the ANOVA and parameter estimates that I'd get from PROC REG, I'm thinking I'll just piece the output from PROC REG and PROC SGPLOT together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 input id weight_1 weight_2;
 cards;
1 80 81
2 150 155
3 190 170
4 201 203
5 204 211
6 180 188
7 170 171
8 177 169
9 90 82
10 99 101
;
run;


ods trace on;
proc reg data=have;
 model weight_1 = weight_2;
 
 ods exclude diagnosticspanel;
 ods exclude residualplot;
 ods exclude fitplot;
run;


proc sgplot data=have;
 title "Fit Plot for weight_1";
 reg y=weight_1 x=weight_2 / cli clm;
 lineparm x=0 y=0 slope=1 / lineattrs=(color=red);
 xaxis values=(50 to 250 by 50);
 yaxis values=(50 to 250 by 50);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Mar 2020 05:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Identity-line-for-regression/m-p/629710#M20774</guid>
      <dc:creator>bkq32</dc:creator>
      <dc:date>2020-03-05T05:26:54Z</dc:date>
    </item>
  </channel>
</rss>

