<?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 Linear regression comparison between groups in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427058#M22433</link>
    <description>&lt;P&gt;Hi everyone I'm new to SAS so my question may be quite basic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a blood test result (y) that follows the following relationship with a drug concentration (x):&lt;/P&gt;&lt;P&gt;Y = B0 + B1*X**0.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand this is a linear relationship for the parameters (&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlin_sect003.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlin_sect003.htm&lt;/A&gt;) so the regression should be done using a linear regression model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used proc reg but with linear Y functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand the code for the linear regression is:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  proc reg data=dataser;
      var X**0.5;
      model Y=X;
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have the data of two groups (patients vs control) how can I compare the regression coefficients for both groups?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 23:27:05 GMT</pubDate>
    <dc:creator>lauramb</dc:creator>
    <dc:date>2018-01-11T23:27:05Z</dc:date>
    <item>
      <title>Linear regression comparison between groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427058#M22433</link>
      <description>&lt;P&gt;Hi everyone I'm new to SAS so my question may be quite basic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a blood test result (y) that follows the following relationship with a drug concentration (x):&lt;/P&gt;&lt;P&gt;Y = B0 + B1*X**0.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand this is a linear relationship for the parameters (&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlin_sect003.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_nlin_sect003.htm&lt;/A&gt;) so the regression should be done using a linear regression model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used proc reg but with linear Y functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand the code for the linear regression is:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  proc reg data=dataser;
      var X**0.5;
      model Y=X;
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have the data of two groups (patients vs control) how can I compare the regression coefficients for both groups?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 23:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427058#M22433</guid>
      <dc:creator>lauramb</dc:creator>
      <dc:date>2018-01-11T23:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression comparison between groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427176#M22438</link>
      <description>&lt;P&gt;Add one more data step to get&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data dataser;&lt;BR /&gt; set dataser;&lt;BR /&gt; X=sqrt(X);&lt;BR /&gt;run;&lt;BR /&gt;proc reg data=dataser;
      model Y=X;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 13:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427176#M22438</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-12T13:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression comparison between groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427195#M22439</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@lbelluscio wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;If I have the data of two groups (patients vs control) how can I compare the regression coefficients for both groups?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=dataser;
      class group;
      model Y=group x x*group;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the variable group is not statistically significant when you perform this regression, then the intercepts of the two groups are not significantly different. If the interaction x*group is not statistically significant when you perform this regression, then the slopes of the two groups are not significantly different.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 14:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427195#M22439</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-12T14:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression comparison between groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427249#M22455</link>
      <description>&lt;P&gt;See &lt;A href="http://support.sas.com/kb/24177" target="_self"&gt;this note&lt;/A&gt;&amp;nbsp;for more on the general topic of comparing models fit to multiple groups.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427249#M22455</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-01-12T16:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Linear regression comparison between groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427345#M22463</link>
      <description>&lt;P&gt;Thanks all for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-regression-comparison-between-groups/m-p/427345#M22463</guid>
      <dc:creator>lauramb</dc:creator>
      <dc:date>2018-01-12T20:12:37Z</dc:date>
    </item>
  </channel>
</rss>

