<?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: Apparent discrepancy between GEE estimation and Type-3 analysis in PROC GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203032#M10883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your helpful reply, Steve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my Type-3 test shows a high P-value, but my GEE estimate shows a low P-value, then which one should I trust?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see this type of discrepancy in 2 situations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) there is only 1 binary predictor, Q&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) there are 3 categorical predictors: Q (binary), X (ternary) and W (ternary).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your insights!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 22:44:11 GMT</pubDate>
    <dc:creator>ABiostatistician</dc:creator>
    <dc:date>2015-08-24T22:44:11Z</dc:date>
    <item>
      <title>Apparent discrepancy between GEE estimation and Type-3 analysis in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203030#M10881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set with a binomial response and a binary predictor, q.&amp;nbsp; My observations are clustered under the various values of a categorical variable, r.&amp;nbsp; I ran this following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;genmod&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = fakedata2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; successes/trials &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = logit&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;type3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;repeated&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = r;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 12pt;"&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;My GEE estimate for Q = 1 has a P-value of 0.0008, but the Type-3 score statistic for Q has a P-value of 0.0956.&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) How is this possible?&amp;nbsp; (I've read the documentation for Type-3 analysis, and I can't figure out how this is exactly calculated.&amp;nbsp; I admit that I don't fully understand what the Type-3 analysis is doing, but, as I have learned from other statisticians, the Type-3 analysis should test for the overall significance of Q while controlling for other effects.&amp;nbsp; Since Q is my only predictor, I would expect their P-values to be similar, if not the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Given these disparate P-values, what can I conclude about Q from this model?&amp;nbsp; Is Q a significant predictor of success?&amp;nbsp; Why or why not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203030#M10881</guid>
      <dc:creator>ABiostatistician</dc:creator>
      <dc:date>2015-08-19T20:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent discrepancy between GEE estimation and Type-3 analysis in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203031#M10882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The type III tests are for a model that assumes that the individual time points are independent (no correlation, and from independent observations as well).&amp;nbsp; The solution serves as the initial values for the GEE, which models the correlation between time points.&amp;nbsp; Here, you model the default exchangeable correlation structure.&amp;nbsp; It is not at all surprising that the two p values differ substantially, if there is a correlation between time points within subject. That is what a GEE approach is designed to handle.&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>Fri, 21 Aug 2015 13:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203031#M10882</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-08-21T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent discrepancy between GEE estimation and Type-3 analysis in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203032#M10883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your helpful reply, Steve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my Type-3 test shows a high P-value, but my GEE estimate shows a low P-value, then which one should I trust?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see this type of discrepancy in 2 situations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) there is only 1 binary predictor, Q&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) there are 3 categorical predictors: Q (binary), X (ternary) and W (ternary).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your insights!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 22:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203032#M10883</guid>
      <dc:creator>ABiostatistician</dc:creator>
      <dc:date>2015-08-24T22:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent discrepancy between GEE estimation and Type-3 analysis in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203033#M10884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally learned the reason.&amp;nbsp; If I invoke the "WALD" option in the "MODEL" statement, then both the GEE and the Type-3 analysis give the same P-values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, PROC GENMOD uses score tests for Type-3 analyses, and that resulted in the difference in P-values in my model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 03:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Apparent-discrepancy-between-GEE-estimation-and-Type-3-analysis/m-p/203033#M10884</guid>
      <dc:creator>ABiostatistician</dc:creator>
      <dc:date>2015-08-27T03:29:39Z</dc:date>
    </item>
  </channel>
</rss>

