<?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 sgplot reg model in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/964087#M83958</link>
    <description>&lt;P&gt;No. You can not. But you could use PROC REG + PLOT to get the regression line function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=sashelp.class;
model height=weight;
/*model height=weight/noint;*/
plot height*weight;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1744333716487.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106178iDD715AEE86E16666/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1744333716487.png" alt="Ksharp_0-1744333716487.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2025 01:08:45 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-04-11T01:08:45Z</dc:date>
    <item>
      <title>proc sgplot reg model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/963926#M83955</link>
      <description>&lt;P&gt;Does anyone know what kind of a regression model (with or w/o intercept) is used to build a regression line in the proc sgplot? I want to add the model parameters to the graph but I am not sure which model corresponds to the reg line in the sgplot when we use reg statement there. I checked the documentation for the proc sgplot but did not find any info regarding this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 19:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/963926#M83955</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2025-04-09T19:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot reg model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/963948#M83956</link>
      <description>&lt;P&gt;?? It is just a regression model with one independent variable:&amp;nbsp; &amp;nbsp;Y=intercept + beta*X ;&lt;/P&gt;
&lt;P&gt;You can compare the output between PROC REG and PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg data=sashelp.class;&lt;BR /&gt;model height=weight;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;reg y=height x=weight;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could see thay have the same regression line and intercept .&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 02:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/963948#M83956</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-10T02:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot reg model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/964005#M83957</link>
      <description>&lt;P&gt;thanks for the reply! I appreciate it! but unfortunately I do not see it on the graph.&amp;nbsp; perhaps I should specify the start of the axis to see it. Thanks for the idea how to check it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if proc sgplot can output the parameters for the reg line? and whether it is possible to specify the reg w/o an intercept in proc sgplot?&lt;/P&gt;&lt;P&gt;I know that I can run proc reg, save the model parameters into a file and than pick it up and display them on the plot. I am just wondering if i can only use proc sgplot for that. thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 13:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/964005#M83957</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2025-04-10T13:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot reg model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/964087#M83958</link>
      <description>&lt;P&gt;No. You can not. But you could use PROC REG + PLOT to get the regression line function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=sashelp.class;
model height=weight;
/*model height=weight/noint;*/
plot height*weight;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1744333716487.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106178iDD715AEE86E16666/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1744333716487.png" alt="Ksharp_0-1744333716487.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 01:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/964087#M83958</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-11T01:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot reg model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/964111#M83959</link>
      <description>&lt;P&gt;thank you for the confirmation! this is what I thought too. Too bad that SAS did not gave more functionality to the sgplot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the confirmation!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 13:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sgplot-reg-model/m-p/964111#M83959</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2025-04-11T13:50:05Z</dc:date>
    </item>
  </channel>
</rss>

