<?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 Get different results for one parameter t value when using proc glm and proc reg in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-different-results-for-one-parameter-t-value-when-using-proc/m-p/843797#M333579</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a continuous explanatory variable, a continuous dependent variable, a dummy variable and an interaction variable. However the t value for the variable mentioned lnx gets different results for the two methods. Does someone have an idea of why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall F-test is the same for both proc reg and glm.&lt;/P&gt;&lt;P&gt;The dummy (dummy_APO_E ) variable is either 0 or 1 and the interaction (interaktion) variable is the interaction between lnx and&amp;nbsp;dummy_APO_E . Both of them show the same t value with the same p value for proc reg and glm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that I run looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc reg data=merg3_data;
model AVAL =lnx interaktion dummy_APO_E ;
run;

proc glm data=merg3_data ;
class dummy_APO_E;
model aval = lnx |dummy_APO_E / solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am using SAS Enterprise Guide 8.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 14:28:35 GMT</pubDate>
    <dc:creator>Tobias80</dc:creator>
    <dc:date>2022-11-11T14:28:35Z</dc:date>
    <item>
      <title>Get different results for one parameter t value when using proc glm and proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-different-results-for-one-parameter-t-value-when-using-proc/m-p/843797#M333579</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a continuous explanatory variable, a continuous dependent variable, a dummy variable and an interaction variable. However the t value for the variable mentioned lnx gets different results for the two methods. Does someone have an idea of why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall F-test is the same for both proc reg and glm.&lt;/P&gt;&lt;P&gt;The dummy (dummy_APO_E ) variable is either 0 or 1 and the interaction (interaktion) variable is the interaction between lnx and&amp;nbsp;dummy_APO_E . Both of them show the same t value with the same p value for proc reg and glm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that I run looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc reg data=merg3_data;
model AVAL =lnx interaktion dummy_APO_E ;
run;

proc glm data=merg3_data ;
class dummy_APO_E;
model aval = lnx |dummy_APO_E / solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am using SAS Enterprise Guide 8.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 14:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-different-results-for-one-parameter-t-value-when-using-proc/m-p/843797#M333579</guid>
      <dc:creator>Tobias80</dc:creator>
      <dc:date>2022-11-11T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get different results for one parameter t value when using proc glm and proc reg</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-different-results-for-one-parameter-t-value-when-using-proc/m-p/843799#M333580</link>
      <description>&lt;P&gt;Probably, GLM has parameterized the model differently than you did in REG. This is normal, and nothing to worry about; it does have the possibility of different parameter estimates and t-values for the dummy variable and interaction. However, the model is the same, as indicated by your statement: "The overall F-test is the same for both proc reg and glm."&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 14:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-different-results-for-one-parameter-t-value-when-using-proc/m-p/843799#M333580</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-11T14:42:24Z</dc:date>
    </item>
  </channel>
</rss>

