<?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 PROC PANEL: How to include an interaction term into a fixed effect model? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140050#M7311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a balanced panel data set for t=2. I want to estimate a fixed effects model in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y= β(0) + β(1)*x + β(2)*z + β(3)*(x*z) + μ + ε&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to include an interaction term in the PROC PANEL procedure. Hence, I thought about manually calculating a variable w=x*y and including it in the model. However, considering that a fixed effects model uses deviations of the individual specific means for each variable, this seems to be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how this has to be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 11:33:39 GMT</pubDate>
    <dc:creator>JB81</dc:creator>
    <dc:date>2014-07-29T11:33:39Z</dc:date>
    <item>
      <title>PROC PANEL: How to include an interaction term into a fixed effect model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140050#M7311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a balanced panel data set for t=2. I want to estimate a fixed effects model in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y= β(0) + β(1)*x + β(2)*z + β(3)*(x*z) + μ + ε&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to include an interaction term in the PROC PANEL procedure. Hence, I thought about manually calculating a variable w=x*y and including it in the model. However, considering that a fixed effects model uses deviations of the individual specific means for each variable, this seems to be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how this has to be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 11:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140050#M7311</guid>
      <dc:creator>JB81</dc:creator>
      <dc:date>2014-07-29T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PANEL: How to include an interaction term into a fixed effect model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140051#M7312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If x and z are CLASS variables, you should be able to specify the model using GLM-like syntax.&amp;nbsp; I suspect however that they are continuous variables.&amp;nbsp; In that case, the interaction variable can be constructed as (x{i} - xbar) * (z{i} - zbar), where xbar and zbar are the means of the two values.&amp;nbsp; May need scaling but not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 13:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140051#M7312</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-29T13:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PANEL: How to include an interaction term into a fixed effect model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140052#M7313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. Since t=2, I decided to use a first difference model which is equivalent to a fixed effects model an easier to implement in SAS, since I can implement the interactions directly in GLM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by "may need scaling"? I want to mean-center x and z and again I am wondering whether I have to mean-center the first-difference of x and z (d_x &amp;amp; d_z) or the actual variables x and z?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another question: why does PROC PANEL let me include t as a variable? If I include the difference of t in the first difference model, then d_t=1 for each observation and therefore exlcuded from the model. What does PROC PANEL do differently here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140052#M7313</guid>
      <dc:creator>JB81</dc:creator>
      <dc:date>2014-07-30T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PANEL: How to include an interaction term into a fixed effect model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140053#M7314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would stick with mean-centering the variables, rather than first differences, but that is just a gut feeling.&amp;nbsp; If everything is equally spaced with no missing values, the only way I see it coming out differently is if the first or last variable are extreme.&amp;nbsp; That is just a 50:50 thought though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last question is certainly beyond my scope--the guys in the Econometrics and Forecasting forum may have an answer.&amp;nbsp; Calling on &lt;A __default_attr="808316" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; and &lt;A __default_attr="414047" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; -&amp;nbsp; any help on this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-PANEL-How-to-include-an-interaction-term-into-a-fixed/m-p/140053#M7314</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-31T11:30:26Z</dc:date>
    </item>
  </channel>
</rss>

