<?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: McNemar's Test for Propensity Matched Data and Type I Error in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/McNemar-s-Test-for-Propensity-Matched-Data-and-Type-I-Error/m-p/543850#M27222</link>
    <description>&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2019 23:13:01 GMT</pubDate>
    <dc:creator>thanksforhelp12</dc:creator>
    <dc:date>2019-03-17T23:13:01Z</dc:date>
    <item>
      <title>McNemar's Test for Propensity Matched Data and Type I Error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McNemar-s-Test-for-Propensity-Matched-Data-and-Type-I-Error/m-p/542416#M27182</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to use McNemar's test to assess for differences between a treatment and control group in a retrospective propensity-matched study. Each group has about 1000 patients and the propensity matching was performed using proc psmatch.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is that when I use McNemar's test using the "agree" option in the PROC FREQ command, it shows that every single outcome measure has P&amp;lt;0.001. Things where chi-square shows P=1.0 are significant P&amp;lt;0.001. A difference of 10.79% verses 10.71% is P&amp;lt;0.001 with McNemar and P=1 with chi square. Is this normal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand the premise behind the paired nature of McNemar's test but I just have never never seen such massive differences between paired and unpaired statistical tests and feel as though something is wrong. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 14:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McNemar-s-Test-for-Propensity-Matched-Data-and-Type-I-Error/m-p/542416#M27182</guid>
      <dc:creator>thanksforhelp12</dc:creator>
      <dc:date>2019-03-12T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: McNemar's Test for Propensity Matched Data and Type I Error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McNemar-s-Test-for-Propensity-Matched-Data-and-Type-I-Error/m-p/543850#M27222</link>
      <description>&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 23:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McNemar-s-Test-for-Propensity-Matched-Data-and-Type-I-Error/m-p/543850#M27222</guid>
      <dc:creator>thanksforhelp12</dc:creator>
      <dc:date>2019-03-17T23:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: McNemar's Test for Propensity Matched Data and Type I Error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McNemar-s-Test-for-Propensity-Matched-Data-and-Type-I-Error/m-p/544544#M27242</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256012"&gt;@thanksforhelp12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to see that nobody has replied to your post yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me first say that I'm not familiar with propensity matching, so I don't really know what is "normal" under these circumstances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My thoughts as a mathematician are:&lt;/P&gt;
&lt;P&gt;Let n&lt;FONT size="1 2 3 4 5 6 7"&gt;ij&lt;/FONT&gt;&amp;nbsp;(i=0, 1; j=0, 1) denote the numbers of matched pairs with the four possible outcomes for a binary outcome measure, where i is the result for the subject in the control group and j the result for the treated patient. So, n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;&amp;nbsp;form the 2x2 contingency table that you analyzed with PROC FREQ (at least for the McNemar test) and the total n:=n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;&amp;nbsp;is about 1000 in your study, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The McNemar test statistic (n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;-n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;)²/(n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;) must exceed &lt;FONT face="courier new,courier"&gt;cinv(0.999, 1)&lt;/FONT&gt;, approx. 10.83, in order to obtain a p-value &amp;lt;0.001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An evaluation of the two groups as if they were independent samples would be based on the contingency table with entries n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt; and n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;&amp;nbsp;(having overall total 2n). The Pearson chi-square test statistic for this table can be zero (hence p-value 1) only if (n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;)(n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;)=(n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;)(n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;+n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;). An easy calculation shows that this is equivalent to n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;=n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;&amp;nbsp;and hence incompatible with a non-zero McNemar test statistic (see above). Indeed, I found that the Pearson chi-square can be written as 2n(n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;-n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;)²/(n²-(n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;-n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;)²) and that its smallest possible value with n=1000 and p(McNemar)&amp;lt;0.001 is about 0.2420 (p-value 0.6228), e.g. with&amp;nbsp;n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;=494, n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;=0, n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;=11, n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;=495.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you perhaps calculate the Pearson chi-square for the original contingency table (n&lt;FONT size="1 2 3 4 5 6 7"&gt;00&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;01&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;10&lt;/FONT&gt;, n&lt;FONT size="1 2 3 4 5 6 7"&gt;11&lt;/FONT&gt;)? In this case it is possible to obtain a p-value (close to) 1, especially if the outcomes of the treated and control subject are close to independent.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 13:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McNemar-s-Test-for-Propensity-Matched-Data-and-Type-I-Error/m-p/544544#M27242</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-20T13:10:04Z</dc:date>
    </item>
  </channel>
</rss>

