<?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-differences analysis for rates in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730365#M35413</link>
    <description>&lt;A href="http://support.sas.com/kb/24/188.html" target="_blank"&gt;http://support.sas.com/kb/24/188.html&lt;/A&gt;</description>
    <pubDate>Wed, 31 Mar 2021 11:27:35 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-03-31T11:27:35Z</dc:date>
    <item>
      <title>Difference-in-differences analysis for rates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730075#M35404</link>
      <description>&lt;P&gt;I want to compare disease incidence rates between age groups over time. We are trying to see if the incidence rates increased/decreased over time differently between multiple age groups. I have monthly counts for a disease and underlying population for each age group. Can I use proc genmod with poison distribution and log of population as offset with interaction between time and age group?&lt;/P&gt;&lt;P&gt;Is there a way to compare differences in rates between two time period using the poison regression?&lt;/P&gt;&lt;P&gt;For eg, In March 2018 the rate difference between two age group was 10 but in Sep 2018 the rate difference was 30. What is the best approach to analyze this data?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 12:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730075#M35404</guid>
      <dc:creator>kp19</dc:creator>
      <dc:date>2021-03-30T12:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference-in-differences analysis for rates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730082#M35405</link>
      <description>If your data is 2*2 contingency table .Try PROC FREQ.&lt;BR /&gt;&lt;BR /&gt;proc freq data=have;&lt;BR /&gt;table a*b/relrisk ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; wrote a blog about it before.</description>
      <pubDate>Tue, 30 Mar 2021 13:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730082#M35405</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-30T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference-in-differences analysis for rates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730138#M35406</link>
      <description>&lt;P&gt;Yes, you can use your Poisson model with offset in GENMOD. But to get the difference in difference estimate on the probability (incidence rate) scale, you will need to use the NLMeans macro as described in the second part of &lt;A href="http://support.sas.com/kb/61830" target="_self"&gt;this note&lt;/A&gt;. The following uses the Poisson example in the Getting Started section of the GENMOD documentation and estimates the difference in difference to see if the response rate is the same at each age for the large and small car sizes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=insure;
where car in ('large','small');
class car age;
model c = car|age / dist=poisson  offset=ln;
lsmeans car*age / e ilink plots=none;
ods output coef=coeffs;
lsmestimate car*age "Diff in Diff Log Probs" 1 -1 -1 1;
store fit;
run;
data difdif;
   input k1-k4;
   set=1;
   datalines;
   1 -1 -1 1
   ;
%NLMeans(instore=fit, coef=coeffs, link=log, contrasts=difdif,
         title=Difference in Difference of Means)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Mar 2021 16:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730138#M35406</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-30T16:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Difference-in-differences analysis for rates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730365#M35413</link>
      <description>&lt;A href="http://support.sas.com/kb/24/188.html" target="_blank"&gt;http://support.sas.com/kb/24/188.html&lt;/A&gt;</description>
      <pubDate>Wed, 31 Mar 2021 11:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-in-differences-analysis-for-rates/m-p/730365#M35413</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-31T11:27:35Z</dc:date>
    </item>
  </channel>
</rss>

