<?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 Are McNemar and Paired t-tessts appropriate for 2:1 matching? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694897#M33542</link>
    <description>&lt;P&gt;I have a matched dataset (2:1). Is it appropriate to use McNemar's test and Paired t-tests?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 15:02:16 GMT</pubDate>
    <dc:creator>tka726</dc:creator>
    <dc:date>2020-10-28T15:02:16Z</dc:date>
    <item>
      <title>Are McNemar and Paired t-tessts appropriate for 2:1 matching?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694897#M33542</link>
      <description>&lt;P&gt;I have a matched dataset (2:1). Is it appropriate to use McNemar's test and Paired t-tests?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 15:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694897#M33542</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2020-10-28T15:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Are McNemar and Paired t-tessts appropriate for 2:1 matching?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694919#M33544</link>
      <description>&lt;P&gt;If I understand your question, these tests are for 1:1 matching. Typically, the observations are the same subject before and after some intervention.&amp;nbsp; McNemar's test is for association in a 2x2 frequency table whereas a paired t test is to detect whether there is a difference in the mean response before/after the intervention.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 15:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694919#M33544</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-10-28T15:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Are McNemar and Paired t-tessts appropriate for 2:1 matching?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694943#M33545</link>
      <description>&lt;P&gt;It really depends on the matching criteria - if it is within a subject, such as a pre-/post-, I feel confident in the use of a paired t-test.&amp;nbsp; However, if it is matching based on inspection or a propensity score or other factors where the experimental unit and the observational unit are not the same, I would go with a standard t test and allow for heteroscedastic variances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't comment so much on McNemars test, except that it requires a square contingency table, and really depends on what occurs in the off-diagonal cells. So long as you are confident about the matching criteria (like a patient and 2 siblings), I think you would be OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 16:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694943#M33545</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-28T16:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Are McNemar and Paired t-tessts appropriate for 2:1 matching?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694947#M33547</link>
      <description>&lt;P&gt;For the case with a binary response, this sort of matched data can be analyzed with a conditional logistic model. That model can be fit in PROC LOGISTIC using the STRATA statement. In the STRATA statement, specify a variable that has a unique value for each set of three matched observations. The input data should have a separate observation for each subject/item in each matched set. A simple example for matched pairs data can be seen in the Examples section of the PROC LOGISTIC documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 16:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694947#M33547</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-10-28T16:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Are McNemar and Paired t-tessts appropriate for 2:1 matching?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694979#M33551</link>
      <description>&lt;P&gt;And for continuous data, any approach that recognizes both the weighting and hierarchical/clustered nature of the design after matching would work.&amp;nbsp; Mixed models come to mind (as they usually do for me).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 18:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/694979#M33551</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-28T18:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Are McNemar and Paired t-tessts appropriate for 2:1 matching?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/695029#M33553</link>
      <description>Thanks!! I am not that familiar with proc mixed. How would the code look?&lt;BR /&gt;Assuming data looks like this; a treated patient [treat=1] can be matched with up to 2 controls [treat=0] without replacement, and the matched pair is noted in 'matchID' (unique value for each set of matched observations)&lt;BR /&gt;&lt;BR /&gt;Obs ptid Y treat matchID&lt;BR /&gt;1 1 80 1 1&lt;BR /&gt;2 2 100 0 1&lt;BR /&gt;3 3 60 0 1&lt;BR /&gt;4 4 20 1 2&lt;BR /&gt;5 5 100 0 2&lt;BR /&gt;6 6 75 0 2&lt;BR /&gt;7 7 75 1 3&lt;BR /&gt;8 8 65 0 3&lt;BR /&gt;&lt;BR /&gt;PROC MIXED DATA = data1 METHOD = ML;&lt;BR /&gt;CLASS ptid matchID&lt;BR /&gt;MODEL Y = treat;&lt;BR /&gt;REPEATED INT / TYPE = cs SUBJECT = ptid;&lt;BR /&gt;RUN;</description>
      <pubDate>Wed, 28 Oct 2020 20:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/695029#M33553</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2020-10-28T20:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Are McNemar and Paired t-tessts appropriate for 2:1 matching?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/695150#M33566</link>
      <description>&lt;P&gt;Close.&amp;nbsp; Replace the ptid as the subject with MatchId. Also consider changing from a REPEATED statement to a RANDOM statement, so that you get this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;random int/subject=matchid type=cs;&lt;/PRE&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 12:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-McNemar-and-Paired-t-tessts-appropriate-for-2-1-matching/m-p/695150#M33566</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-29T12:38:57Z</dc:date>
    </item>
  </channel>
</rss>

