<?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 Statistical test for the difference between coefficients in multiple regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473471#M24652</link>
    <description>&lt;P&gt;I have a multiple regression equation with year and industry fixed effect as below.&lt;/P&gt;&lt;P&gt;y = x1 + D + x1*D + FE + error (x1 is continuous and D is binary)&lt;/P&gt;&lt;P&gt;and I have another dummy variable (let's say, Z = 0 or 1).&lt;/P&gt;&lt;P&gt;What I want to see is if the coefficients on x1*D are statistically significantly different for the subsample Z =1 and Z=0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have tried is 3-way interaction (x1*D*Z). However, because of fixed effects, the difference in the coefficient on x1*D from separate regression for Z=0 and Z=1 is not the same as the coefficient on 3-way interaction. (Separate regression allows the error term to vary separately whereas 3-way interaction multiple regression does not)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end, what I want is 3 columns with the coefficients for Z=0, Z=1, and the difference. Is there some type of test in SAS where I can achieve this?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 16:49:43 GMT</pubDate>
    <dc:creator>kelSAS</dc:creator>
    <dc:date>2018-06-26T16:49:43Z</dc:date>
    <item>
      <title>Statistical test for the difference between coefficients in multiple regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473471#M24652</link>
      <description>&lt;P&gt;I have a multiple regression equation with year and industry fixed effect as below.&lt;/P&gt;&lt;P&gt;y = x1 + D + x1*D + FE + error (x1 is continuous and D is binary)&lt;/P&gt;&lt;P&gt;and I have another dummy variable (let's say, Z = 0 or 1).&lt;/P&gt;&lt;P&gt;What I want to see is if the coefficients on x1*D are statistically significantly different for the subsample Z =1 and Z=0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have tried is 3-way interaction (x1*D*Z). However, because of fixed effects, the difference in the coefficient on x1*D from separate regression for Z=0 and Z=1 is not the same as the coefficient on 3-way interaction. (Separate regression allows the error term to vary separately whereas 3-way interaction multiple regression does not)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end, what I want is 3 columns with the coefficients for Z=0, Z=1, and the difference. Is there some type of test in SAS where I can achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473471#M24652</guid>
      <dc:creator>kelSAS</dc:creator>
      <dc:date>2018-06-26T16:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical test for the difference between coefficients in multiple regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473475#M24653</link>
      <description>&lt;P&gt;sounds like a subgroup analysis stratifying by z. The interaction then is the right way to go. You'd use an estimate statement for the difference and lsmeans statement for the group estimates. Although i'm not sure i understand your description of the model. Is year fixed or is year x1? what is FE? etc&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473475#M24653</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-26T16:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical test for the difference between coefficients in multiple regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473487#M24654</link>
      <description>&lt;P&gt;I apologize that my explanation was inadequate. FE is for fixed effect. So original model looks like below.&lt;/P&gt;&lt;P&gt;y = &lt;SPAN&gt;α1&amp;nbsp;&lt;/SPAN&gt;x1 + &lt;SPAN&gt;α2&amp;nbsp;&lt;/SPAN&gt;D + &lt;SPAN&gt;α3&amp;nbsp;&lt;/SPAN&gt;x1*D + &lt;SPAN&gt;α4&amp;nbsp;&lt;/SPAN&gt;d_1990 + &lt;SPAN&gt;α5&amp;nbsp;&lt;/SPAN&gt;d_1991 + ... + d_2017 + d_sic1 + d_sic2 + ... + d_sic48 + error&lt;/P&gt;&lt;P&gt;where d_1990 to d_2017 are year dummies and d_sic1 to d_sic48 are industry dummies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to look at the difference in&amp;nbsp;&lt;SPAN&gt;α3 for the sample with Z=0 and the sample with Z=1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But because of FE (fixed effects) that are laid out as d_1990 to d_2017 and d_sic1 to d_sic48, if I run the regression separately for Z=0 group and Z=1 group, the the difference in&amp;nbsp;α3 from the two regressions is not the same as the coefficient on 3-way interaction (x1*D*Z) from 1 multiple regression with bunch of interactions. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know the intuition and interpretation won't be different, but I need the numbers (the difference and the 3-way interaction) to be the same to put in my result table.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473487#M24654</guid>
      <dc:creator>kelSAS</dc:creator>
      <dc:date>2018-06-26T17:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical test for the difference between coefficients in multiple regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473571#M24655</link>
      <description>&lt;P&gt;why do you create indicator variables instead of using a class statement? Running the models separately versus using an interaction won't necessarily give exactly the same result; i would use the interaction, others have discussed it in detail eg:&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2009/po/PO08.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug/2009/po/PO08.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-do-subgroup-analysis/td-p/82638" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-do-subgroup-analysis/td-p/82638&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 23:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-test-for-the-difference-between-coefficients-in/m-p/473571#M24655</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-06-26T23:48:53Z</dc:date>
    </item>
  </channel>
</rss>

