<?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: Difference in difference with Genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-difference-with-Genmod/m-p/544340#M27235</link>
    <description>&lt;P&gt;Well, that seems consistent with&amp;nbsp;&lt;A href="http://support.sas.com/kb/61830" target="_self"&gt;this note&lt;/A&gt;. Parameter estimates for CASE and TIME should be adjusted for the effects of the other variables. So, their estimates should change with vs. without those additional variables unless, of course, they are all uncorrelated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2019 19:28:34 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2019-03-19T19:28:34Z</dc:date>
    <item>
      <title>Difference in difference with Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-difference-with-Genmod/m-p/544290#M27234</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to figure out how to conduct a difference in difference analysis with a proc Genmod.&lt;BR /&gt;My outcome is a continuous variable (Y), and I would like to know if being a case (Yes/no) influences this outcome.&lt;/P&gt;&lt;P&gt;I have repeteated measures ( time = 0 to 12), and several not time-dependent variables (Adj_var).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My&amp;nbsp; code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC GENMOD DATA=GEE_PREPARATION2;
CLASS id time(ref="0") Adj_var (ref="0") case(ref="0") / param=ref;
MODEL Y= case time Adj_var  case*time;
REPEATED SUBJECT=id / TYPE=UN CORRW; RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And... I don't understand my results at all. For time*Case (1 1) it gives me a coefficient "22.8271".&amp;nbsp;I thought it was the result of my Diff in Diff because it's the same results when I calculate it by hand DiD=[(Y11 - Y10)-(Y01-Y00)].&amp;nbsp; But he didn't take into account my adjustment variables (Adj_var).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try with this code :&lt;/P&gt;&lt;PRE&gt;PROC GENMOD DATA=GEE_PREPARATION2; &lt;BR /&gt;CLASS id time(ref="0")  case(ref="0") / param=ref; &lt;BR /&gt;MODEL ville= case time case*time; REPEATED SUBJECT=id / TYPE=UN CORRW; RUN;&lt;/PRE&gt;&lt;P&gt;I have the same results.&lt;/P&gt;&lt;P&gt;I must have missed something, but I don't see what...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 17:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-difference-with-Genmod/m-p/544290#M27234</guid>
      <dc:creator>Molina</dc:creator>
      <dc:date>2019-03-19T17:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in difference with Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-difference-with-Genmod/m-p/544340#M27235</link>
      <description>&lt;P&gt;Well, that seems consistent with&amp;nbsp;&lt;A href="http://support.sas.com/kb/61830" target="_self"&gt;this note&lt;/A&gt;. Parameter estimates for CASE and TIME should be adjusted for the effects of the other variables. So, their estimates should change with vs. without those additional variables unless, of course, they are all uncorrelated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-difference-with-Genmod/m-p/544340#M27235</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-03-19T19:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in difference with Genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-difference-with-Genmod/m-p/544378#M27237</link>
      <description>&lt;P&gt;Thank you StatDave_sas,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm totally agree with you, if I adjust with VAR_ADJ, the parameter estimates for CASE and TIME are changed.&amp;nbsp;What I find curious is that my interaction parameter TIME*CASE does not change with or without VAR_ADJ.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of my model is precisely to adjust the difference in difference estimate (TIME*CASE).&amp;nbsp;That's why I'm so embarrassed with this result. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&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>Tue, 19 Mar 2019 21:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-difference-with-Genmod/m-p/544378#M27237</guid>
      <dc:creator>Molina</dc:creator>
      <dc:date>2019-03-19T21:08:12Z</dc:date>
    </item>
  </channel>
</rss>

