<?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 Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134389#M7011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a logistic model that will require a random effect, requiring GLIMMIX.&amp;nbsp; However, before adding the random effect, I wanted to make sure I was specifying my model correctly without a random effect in GLIMMIX by comparing it to the output from GENMOD and LOGISTIC.&amp;nbsp; My code is below.&amp;nbsp; All variables are dichotomous: random (ACASI vs. FTF), time (2 vs 1), discTrt (Yes vs No).&amp;nbsp; The three procedures all give the exact same parameter estimates and standard errors.&amp;nbsp; GENMOD and LOGISTIC use Wald Chi-square to give p-values and these are identical.&amp;nbsp; GLIMMIX uses t tests instead, but the p-values are extremely similar.&amp;nbsp; Great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are differences in the Type 3 Analyses.&amp;nbsp; The differences between GENMOD and LOGISTIC are extremely small and are due to GENMOD using LR test and LOGISTIC using Wald test.&amp;nbsp; As expected with all dichotomous variables, in LOGISTIC, the parameter estimate p-values equal the Type 3 p-values, because they are both doing the same Wald test.&amp;nbsp; The parameter estimate p-values in GENMOD equal the parameter estimate p-values from LOGISTIC and the Type 3 LOGISTIC, again, because they are all using the same Wald test.&amp;nbsp; The only odd man out is the Type 3 GENMOD due to the use of LR.&amp;nbsp; I'm comfortable with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, GLIMMIX instead performs an F test.&amp;nbsp; There are several unexpected things with this F test.&amp;nbsp; Perhaps they are obvious and I'm just overthinking it.&amp;nbsp; First, with dichotomous variables, I would expect the Type 3 F test statistic to simply be the parameter t statistic squared, as the F stat has 1 num df and the same denom df as the t stat.&amp;nbsp; This is not the case for either main effect, but is the case (considering rounding) for the interaction.&amp;nbsp; Thus, the p-values for the parameter estimates and the Type 3 tests, which I expect to be the same for dichotomous predictors, are different.&amp;nbsp; If I remove the interaction from the model, then the F stats do equal the t stats squared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, as a consequence of the first problem, the Type 3 p-values for the two main effects are no longer similar to the Type 3 p-values from GENMOD or LOGISTIC.&amp;nbsp; Again, if I remove the interaction, then all three procedures agree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is going on with GLIMMIX when an interaction is included that is different from GENMOD and LOGISTIC.&amp;nbsp; I can conceptually understand Wald Chi-sq and LR test, so perhaps I'm just no understanding the F test GLIMMIX is using and how the interaction would affect it.&amp;nbsp; In my results, also below, this doesn't much matter, as the interaction is not significant and can be removed from the model.&amp;nbsp; However, I am worried that there could be a case where the interaction is significant and must be kept.&amp;nbsp; Could there be a circumstance where a main effect in LOGISTIC/GENMOD is significant but the main effect is not significant in GLIMMIX, or vice versa? This would change the interpretation quite a bit.&amp;nbsp; Any insight would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods select Tests3 ParameterEstimates;&lt;/P&gt;&lt;P&gt;proc glimmix data = aq;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class random (ref = 'FTF') time (ref = '1') discTrt (ref = 'No');&lt;/P&gt;&lt;P&gt;&amp;nbsp; model discTrt = random|time / dist = binary solution chisq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods select Type3 ParameterEstimates;&lt;/P&gt;&lt;P&gt;proc genmod data = aq descending;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class random (ref = 'FTF') time (ref = '1') discTrt (ref = 'No') / param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model discTrt = random|time / dist = binomial type3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods select Type3 ParameterEstimates;&lt;/P&gt;&lt;P&gt;proc logistic data = aq;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class random (ref = 'FTF') time (ref = '1') discTrt (ref = 'No') / param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model discTrt = random|time;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GLIMMIX&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="branch"&gt;Parameter Estimates&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;start&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" rules="all" summary="Procedure Glimmix: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Effect&lt;/TD&gt;&lt;TD&gt;random&lt;/TD&gt;&lt;TD&gt;time&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;DF&lt;/TD&gt;&lt;TD&gt;t Value&lt;/TD&gt;&lt;TD&gt;Pr &amp;gt; |t|&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1081&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1949&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-5.68&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.4360&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2636&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.65&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0985&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l data"&gt;FTF&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.9257&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2800&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-3.31&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt;1&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.4120&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3918&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.05&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2933&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt;1&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;FTF&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;FTF&lt;/TH&gt;&lt;TH class="l data"&gt;1&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type III Tests of Fixed Effects&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Glimmix: Type III Tests of Fixed Effects"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Effect&lt;/TD&gt;&lt;TD colspan="1"&gt;Num DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Den DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;F Value&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;P&gt;Pr &amp;gt; chiSq&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2403&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2407&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;33.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;33.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2933&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="branch"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GENMOD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Analysis of Maximum Likelihood Parameter Estimates&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Genmod: Analysis Of Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Parameter&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Estimate&lt;/TD&gt;&lt;TD colspan="1"&gt;Standard Error&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald 95% &lt;/TD&gt;&lt;TD colspan="1"&gt;Confidence Limits&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1081&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1949&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.4902&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.7260&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;32.31&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.4360&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2636&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.0806&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.9526&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.74&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0981&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.9257&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2800&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.4744&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.3769&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;10.93&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.4120&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3918&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1798&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3559&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Scale&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt; &lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;TABLE class="notecontent"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="l notebanner"&gt;Note:&lt;/TD&gt;&lt;TD class="l notecontent"&gt;The scale parameter was held fixed.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;LR Statistics For Type 3 Analysis&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Genmod: LR Statistics For Type 3 Analysis - Unscaled"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Source&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.76&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0966&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;11.00&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2924&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="branch"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOGISTIC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Type 3 Analysis of Effects&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Logistic: Type 3 Tests"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Effect&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.7361&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0981&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;10.9306&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.1059&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Analysis of Maximum Likelihood Estimates&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Logistic: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Parameter&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Estimate&lt;/TD&gt;&lt;TD colspan="1"&gt;Standard Error&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1081&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1949&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;32.3077&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;ACASI&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.4360&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2636&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.7361&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0981&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.9257&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2800&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;10.9306&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;ACASI&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.4120&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3918&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.1059&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 20:06:14 GMT</pubDate>
    <dc:creator>Kastchei</dc:creator>
    <dc:date>2014-07-23T20:06:14Z</dc:date>
    <item>
      <title>Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134389#M7011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a logistic model that will require a random effect, requiring GLIMMIX.&amp;nbsp; However, before adding the random effect, I wanted to make sure I was specifying my model correctly without a random effect in GLIMMIX by comparing it to the output from GENMOD and LOGISTIC.&amp;nbsp; My code is below.&amp;nbsp; All variables are dichotomous: random (ACASI vs. FTF), time (2 vs 1), discTrt (Yes vs No).&amp;nbsp; The three procedures all give the exact same parameter estimates and standard errors.&amp;nbsp; GENMOD and LOGISTIC use Wald Chi-square to give p-values and these are identical.&amp;nbsp; GLIMMIX uses t tests instead, but the p-values are extremely similar.&amp;nbsp; Great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are differences in the Type 3 Analyses.&amp;nbsp; The differences between GENMOD and LOGISTIC are extremely small and are due to GENMOD using LR test and LOGISTIC using Wald test.&amp;nbsp; As expected with all dichotomous variables, in LOGISTIC, the parameter estimate p-values equal the Type 3 p-values, because they are both doing the same Wald test.&amp;nbsp; The parameter estimate p-values in GENMOD equal the parameter estimate p-values from LOGISTIC and the Type 3 LOGISTIC, again, because they are all using the same Wald test.&amp;nbsp; The only odd man out is the Type 3 GENMOD due to the use of LR.&amp;nbsp; I'm comfortable with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, GLIMMIX instead performs an F test.&amp;nbsp; There are several unexpected things with this F test.&amp;nbsp; Perhaps they are obvious and I'm just overthinking it.&amp;nbsp; First, with dichotomous variables, I would expect the Type 3 F test statistic to simply be the parameter t statistic squared, as the F stat has 1 num df and the same denom df as the t stat.&amp;nbsp; This is not the case for either main effect, but is the case (considering rounding) for the interaction.&amp;nbsp; Thus, the p-values for the parameter estimates and the Type 3 tests, which I expect to be the same for dichotomous predictors, are different.&amp;nbsp; If I remove the interaction from the model, then the F stats do equal the t stats squared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, as a consequence of the first problem, the Type 3 p-values for the two main effects are no longer similar to the Type 3 p-values from GENMOD or LOGISTIC.&amp;nbsp; Again, if I remove the interaction, then all three procedures agree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is going on with GLIMMIX when an interaction is included that is different from GENMOD and LOGISTIC.&amp;nbsp; I can conceptually understand Wald Chi-sq and LR test, so perhaps I'm just no understanding the F test GLIMMIX is using and how the interaction would affect it.&amp;nbsp; In my results, also below, this doesn't much matter, as the interaction is not significant and can be removed from the model.&amp;nbsp; However, I am worried that there could be a case where the interaction is significant and must be kept.&amp;nbsp; Could there be a circumstance where a main effect in LOGISTIC/GENMOD is significant but the main effect is not significant in GLIMMIX, or vice versa? This would change the interpretation quite a bit.&amp;nbsp; Any insight would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods select Tests3 ParameterEstimates;&lt;/P&gt;&lt;P&gt;proc glimmix data = aq;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class random (ref = 'FTF') time (ref = '1') discTrt (ref = 'No');&lt;/P&gt;&lt;P&gt;&amp;nbsp; model discTrt = random|time / dist = binary solution chisq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods select Type3 ParameterEstimates;&lt;/P&gt;&lt;P&gt;proc genmod data = aq descending;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class random (ref = 'FTF') time (ref = '1') discTrt (ref = 'No') / param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model discTrt = random|time / dist = binomial type3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods select Type3 ParameterEstimates;&lt;/P&gt;&lt;P&gt;proc logistic data = aq;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class random (ref = 'FTF') time (ref = '1') discTrt (ref = 'No') / param = ref;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model discTrt = random|time;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GLIMMIX&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="branch"&gt;Parameter Estimates&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;start&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" rules="all" summary="Procedure Glimmix: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Effect&lt;/TD&gt;&lt;TD&gt;random&lt;/TD&gt;&lt;TD&gt;time&lt;/TD&gt;&lt;TD&gt;Estimate&lt;/TD&gt;&lt;TD&gt;Standard Error&lt;/TD&gt;&lt;TD&gt;DF&lt;/TD&gt;&lt;TD&gt;t Value&lt;/TD&gt;&lt;TD&gt;Pr &amp;gt; |t|&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1081&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1949&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-5.68&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.4360&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2636&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.65&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0985&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l data"&gt;FTF&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.9257&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2800&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-3.31&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt;1&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.4120&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3918&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.05&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2933&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt;1&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;FTF&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;FTF&lt;/TH&gt;&lt;TH class="l data"&gt;1&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type III Tests of Fixed Effects&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Glimmix: Type III Tests of Fixed Effects"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Effect&lt;/TD&gt;&lt;TD colspan="1"&gt;Num DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Den DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;F Value&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;P&gt;Pr &amp;gt; chiSq&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2403&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2407&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;33.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;33.38&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;741&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2933&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="branch"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GENMOD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Analysis of Maximum Likelihood Parameter Estimates&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Genmod: Analysis Of Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Parameter&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Estimate&lt;/TD&gt;&lt;TD colspan="1"&gt;Standard Error&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald 95% &lt;/TD&gt;&lt;TD colspan="1"&gt;Confidence Limits&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1081&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1949&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.4902&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.7260&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;32.31&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.4360&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2636&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.0806&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.9526&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.74&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0981&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.9257&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2800&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.4744&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.3769&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;10.93&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l data"&gt;ACASI&lt;/TH&gt;&lt;TH class="l data"&gt;2&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.4120&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3918&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1798&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3559&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Scale&lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TH class="l data"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.0000&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt; &lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;TABLE class="notecontent"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="l notebanner"&gt;Note:&lt;/TD&gt;&lt;TD class="l notecontent"&gt;The scale parameter was held fixed.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;LR Statistics For Type 3 Analysis&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Genmod: LR Statistics For Type 3 Analysis - Unscaled"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Source&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.76&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0966&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;11.00&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2924&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="branch"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOGISTIC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Type 3 Analysis of Effects&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Logistic: Type 3 Tests"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Effect&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.7361&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0981&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;10.9306&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.1059&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Analysis of Maximum Likelihood Estimates&lt;/P&gt;&lt;DIV align="left"&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Logistic: Parameter Estimates"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Parameter&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Estimate&lt;/TD&gt;&lt;TD colspan="1"&gt;Standard Error&lt;/TD&gt;&lt;TD colspan="1"&gt;Wald Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-1.1081&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1949&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;32.3077&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;&amp;lt;.0001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;ACASI&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.4360&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2636&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.7361&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0981&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt; &lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.9257&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2800&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;10.9306&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;ACASI&lt;/TH&gt;&lt;TH class="l rowheader" scope="row"&gt;2&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" nowrap="nowrap" style="text-align: right;"&gt;-0.4120&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3918&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;1.1059&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.2930&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134389#M7011</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2014-07-23T20:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134390#M7012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting, and maybe a little disturbing as it doesn't seem to fit with all of my preconceived notions on fitting with GLIMMIX in GLM mode.&amp;nbsp; I would be curious if the results change if you switch the reference level, say for time.&amp;nbsp; Type 3 is supposed to account for imbalance, but there is something here I am clearly missing.&amp;nbsp; I am going to tag this response with &lt;A __default_attr="178104" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; in the hope that he has some insight.&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>Thu, 24 Jul 2014 13:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134390#M7012</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-24T13:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134391#M7013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was originally quite surprised by your results, so I generated a binary data set last night with two factors. I did not have your problem: I got identical chi-square results for GLIMMIX and GENMOD (I did not use LOGISTIC). Your problem is that you used LR based Type 3 testing in GENMOD and Wald (chi-squared or F) testing in GLIMMIX (at least that is what you showed). (Note that the F statistic is just a scaled Wald statistic). It is well known that LR and Wald tests can give different results. With very large sample sizes (depending on the complexity of the model, structure of the data, etc.), they can give the same results, but I would not assume this for most situations. Often they give reasonably close p values at moderate to large sample sizes, but there are exceptions. The Wald statistics work better at smaller n because LR is based on asymptotic properties of the test statistic. To get Wald type 3 statistics in GENMOD, add &lt;STRONG&gt;wald&lt;/STRONG&gt; as an option on the model statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also made the following statement: "First, with dichotomous variables, I would expect the Type 3 F test statistic to simply be the parameter t statistic squared, as the F stat has 1 num df and the same denom df as the t stat.". This is not true, in general, but it is an easy misunderstanding to have. For a simple regression problem, where binary variable is not an indicator for the factor level, the square of the t statistic (est./se) is the F Wald statistic. But it is a different situation when the binary variables are being used to give the expected values or other estimable functions for levels of a factor (especially in a factorial). With a factorial, the test statistic for the main effect of A involves more than just the A parameters. In particular, the main effect mean for A1 is based on a linear combination of A1, the average of the B terms, and the average of the interaction terms that involve A1. So, the type 3 test statistics are based on more complicated contrasts than you are supposing. To see this, add the &lt;STRONG&gt;e&lt;/STRONG&gt; option to the model statement in GLIMMIX to see the coefficients used for generating the tests of A, B, and A*B. You can see these involve more than just single terms for the main effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One final note. Although this is not affecting your results at all (I don't think at this point), you are using different parametrizations for the class variables in GLIMMIX compared to the others. That is, GLIMMIX only uses the so-called GLM parameterization, where there is always a 0 for the last level. You have no choice for this procedure. The reference parametrization is slightly different, which you elected to use for the other two procedures. Here, there is one less level for each factor. The GENMOD documentation describes the many different ways of parameterizing factors with the CLASS statement. This won't affect your global type 3 results, but it is important to be aware of the differences.The developers of linear model procedures going back to the 1970s have made it clear why they favor the "GLM" parameterization. That is why you only find this in GLM, MIXED, and GLIMMIX. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 14:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134391#M7013</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-07-24T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134392#M7014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, lvm.&amp;nbsp; I was thinking I was on crazy pills, since the programs I had all matched as well.&amp;nbsp; Then I used the first example in the GENMOD documentation, and there the differences were.&amp;nbsp; Thanks to this, I noticed that all of my GENMOD programs used the Wald option--something from back when, and I had forgotten about it.&amp;nbsp; Today, I just feel old...&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>Thu, 24 Jul 2014 15:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134392#M7014</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-24T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134393#M7015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Ivm for the long reply.&amp;nbsp; You have, unknowningly, solved my problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue did not reside primarily with LR vs. Wald, and indirectly with the coefficients for the Type 3 F tests.&amp;nbsp; Btw, thank you very much for that theory regarding the coefficients - it makes perfect sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue actually is the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;parameterization!&amp;nbsp; When I change to &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = glm&lt;/SPAN&gt; for both GENMOD with &lt;SPAN style="font-family: 'courier new', courier;"&gt;wald&lt;/SPAN&gt; and LOGISTIC and run GLIMMIX with &lt;SPAN style="font-family: 'courier new', courier;"&gt;chisq&lt;/SPAN&gt; option, all my Type 3 Chi-sq statistics and p-value match perfectly.&amp;nbsp; Also, if I use &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = effect&lt;/SPAN&gt;, I also get Type 3 statistics that match each other and match &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = GLM&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;In summary, either parameterization produces identical parameter estimates and standard errors.&amp;nbsp; The p-values for either parameterization are extremely similar, only varying due to whether a chi-sq (GENMOD, LOGISTIC) or t (GLIMMIX) stat was used.&amp;nbsp; However, they produce greatly different statistics and p-values for Type 3 tests.&amp;nbsp; It appears that GLM parameterization is the preferred method (Steve, do you agree?), and so it looks like I should be including &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = glm&lt;/SPAN&gt; on my future PROC GENMOD and LOGISTIC procedures.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Does it make sense for the parameterization to affect the Type 3 results so much?&amp;nbsp; You seemed to indicate that it wouldn't affect them at all.&amp;nbsp; If I am thinking correctly and understanding your comments about L matrix coefficients, &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = ref&lt;/SPAN&gt; is basically looking to see if any of the coefficients for the non-reference groups are different from 0, aka the reference group.&amp;nbsp; Depending on the reference group, some could have OR below 1 and some above 1 but with none being significantly different from 1.&amp;nbsp; Therefore, Type 3 will not be significant.&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = glm&lt;/SPAN&gt; or &lt;SPAN style="font-family: 'courier new', courier;"&gt;effect&lt;/SPAN&gt; is comparing all groups to each other or to an average response, respectively, across all the data (including interactions).&amp;nbsp; Type 3 could be significant here when it wasn't with &lt;SPAN style="font-family: 'courier new', courier;"&gt;ref&lt;/SPAN&gt;, because it's comparing, from &lt;SPAN style="font-family: 'courier new', courier;"&gt;ref&lt;/SPAN&gt;, the ones with OR below 1 to the the ones with OR above 1, which may be a large enough distance to be significant.&amp;nbsp; Thus &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;glm&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; or &lt;SPAN style="font-family: 'courier new', courier;"&gt;effect&lt;/SPAN&gt; will be picking up any differences between groups or any difference from the average, respectively, whereas &lt;SPAN style="font-family: 'courier new', courier;"&gt;ref&lt;/SPAN&gt; only picks up differences from the control group (perhaps this has some conceptual similarity to Tukey vs. Dunnett adjustments).&amp;nbsp; Is that about right?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks so much.&amp;nbsp; I appreciate your time to look at my rather lengthy posts &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Michael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Below is the output for a different dependent variable, but it shows the agreement within a parameterization, but the disagreement in main effects between parameterizations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;param = glm&lt;/SPAN&gt;: These three agree.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;GLIMMIX with &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'courier new', courier;"&gt;chisq&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Type III Tests of Fixed Effects&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Glimmix: Type III Tests of Fixed Effects"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Effect&lt;/TD&gt;&lt;TD colspan="1"&gt;Num DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Den DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;F Value&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;740&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.17&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.17&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.6802&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.6803&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;740&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;8.32&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;8.32&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0039&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0040&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;740&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.75&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.75&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3861&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3864&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;GENMOD with &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = glm&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;wald&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Wald Statistics For Type 3 Analysis&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Genmod: Wald Statistics For Type 3 Analysis"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Source&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.17&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.6802&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;8.32&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0039&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.75&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3861&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;LOGISTIC with &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;param = glm&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Type 3 Analysis of Effects&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Logistic: Type 3 Tests"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DF&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;Wald&lt;/P&gt;&lt;P&gt;Chi-Square&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pr &amp;gt; ChiSq&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1699&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.6802&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;8.3169&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0039&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.7510&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3861&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;param = effect&lt;/SPAN&gt;: These two agree, and also agree with the previous three.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;GENMOD with param = effect&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;wald&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Wald Statistics For Type 3 Analysis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Genmod: Wald Statistics For Type 3 Analysis"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Source&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.17&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.6802&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;8.32&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0039&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.75&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3861&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;LOGISTIC with param = effect&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Type 3 Analysis of Effects&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Logistic: Type 3 Tests"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DF&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;Wald&lt;/P&gt;&lt;P&gt;Chi-Square&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pr &amp;gt; ChiSq&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1699&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.6802&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;8.3169&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.0039&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.7510&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3861&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;param = ref&lt;/SPAN&gt;: These two agree, but are different from previous three.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;GENMOD with &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = ref&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;wald&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Wald Statistics For Type 3 Analysis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Genmod: Wald Statistics For Type 3 Analysis"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Source&lt;/TD&gt;&lt;TD colspan="1"&gt;DF&lt;/TD&gt;&lt;TD colspan="1"&gt;Chi-Square&lt;/TD&gt;&lt;TD colspan="1"&gt;Pr &amp;gt; ChiSq&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.11&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.7384&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.21&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1370&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.75&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3861&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;LOGISTIC with &lt;SPAN style="font-family: 'courier new', courier;"&gt;param = ref&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Type 3 Analysis of Effects&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellpadding="5" cellspacing="0" class="table" frame="box" rules="all" summary="Procedure Logistic: Type 3 Tests"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DF&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;Wald&lt;/P&gt;&lt;P&gt;Chi-Square&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" style="text-align: right;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pr &amp;gt; ChiSq&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1115&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.7384&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;2.2108&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.1370&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="l rowheader" scope="row"&gt;random*time&lt;/TH&gt;&lt;TD class="r data" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.7510&lt;/TD&gt;&lt;TD class="r data" style="text-align: right;"&gt;0.3861&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 18:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134393#M7015</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2014-07-24T18:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134394#M7016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My answer to all of this is that I just use GLIMMIX for all of my logistic regression situations.&amp;nbsp; I almost never need to calculate AUCs or cutoffs (PROC LOGISTIC), and I came to generalized models from PROC MIXED so I never really used GENMOD.&amp;nbsp; That's why I was freaking out over potentially different results.&amp;nbsp; I am still a bit at odds about the parameterization having an effect on the Type 3 tests.&amp;nbsp; I can see it affecting solution vector tests, but the quadratic forms &lt;EM&gt;shouldn't&lt;/EM&gt; differ for the F or chi-squared tests (note shouldn't in italics).&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>Thu, 24 Jul 2014 18:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134394#M7016</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-24T18:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134395#M7017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad you figured some things out. Great. I want to re-emphasize a few general points. My first two points are still relevant for anyone looking at this. There will often be differences between LR and Wald test results. This is not a property of any computer procedure, but of the statistical methods. There is no general consensus on the best test. But Wald give the most flexibility. With large complex modeling problems, Wald is the only practical testing method. Second, in general, one cannot equate the square of a single parameter t (or z) statistic with the Wald test statistic for a main effect (in factorials). This is because interaction terms must be accounted for in the main effect tests when testing the equality of means (more on this below). For &lt;EM&gt;some&lt;/EM&gt; factor parameterizations, squaring a t or z will give the global type 3 test statistic (with two levels). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had not thought much about alternative parameterization before, since I have accepted the value of "GLM" parametrization. With GLM parameterization, the test for A main effect is testing mu_1. = mu_2. (for the two level problem, where the dot is for the average of B). Without thinking about it, I had assumed this would carry over to other parameterizations. Now that I am thinking about it in more detail, this won't necessarily be so. I need to work through the math, but I am pretty sure that with reference parameterization (as an example), the global Wald statistic for&amp;nbsp; an A main effect does not have an easy interpretation in terms of expected values; it is &lt;EM&gt;not&lt;/EM&gt; testing Ho: mu_1. = mu_2. . . Here's a hint, with the reference parameterization in GENMOD, put in a LSMEANS A; statement. You will get a warning that LSMEANS, LSMESTIMATES, TEST, and SLICE statements only apply to GLM parameterization, and no output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With reference parameterization and 2-level factor, the global type 3 test is just giving you another way of testing the equality of the (single) parameter to 0 (for a main effect). With 3 or more levels of the factor, then the global test would be simultaneous testing the equality of all of these parameters (for main effect) to 0 (H0: A_1 = A_2 =0). This may be of interest, of course. However, it is not testing the equality of expected values (means), even though the means are often of primary interest. My original response was focusing on means (expected values). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am realizing why GENMOD does not automatically give the table of type 3 test statistics. Interpretation can be strained unless the GLM parameterization is used. I hope this helps you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 19:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134395#M7017</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-07-24T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134396#M7018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I understand and agree with everything you said.&amp;nbsp; It makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To rephrase and make sure I have it correct, Type 3 with reference coding is testing H0a: βa1 = βa2 = βa3 = ... = βa(k-1) = 0, not H0b: μa1 = μa2 = μa3 = ... = μak.&amp;nbsp; When there are no interactions, these two hypotheses are equivalent.&amp;nbsp; When there are interactions, then support for H0a (all main effect coefficients = 0) does &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; imply that the interaction coefficients are also 0.&amp;nbsp; Since the means are the combinations of the appropriate main effect level with the appropriate interactive effect levels (average over all the other effects in the model), the means could still be different even if the main effect coefficients are all 0 - that is, H0a is true while H0b is false.&amp;nbsp; This makes sense from the standpoint of interpretation, as one needs to include an estimate statement or manually add up the interactive terms to correctly determine ORs, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(And it could be the case where the main effect and the interactive effect parameter estimates are both significant, but opposite in magnitude which leaves the actual means of those two groups equal, though different from other possible groups).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of parameterization, because a dichotomous variable has only one level, this simplifies to H0a: βa = 0.&amp;nbsp; Without interaction, this is equivalent to H0b: μa1 = μa2.&amp;nbsp; The F-test for H0b: μa1 = μa2 is thus equivalently an F-test for H0a: βa = 0.&amp;nbsp; H0a: βa = 0 is also the hypothesis for the t-test of the parameter estimate.&amp;nbsp; So in this case only, dichotomous variable with no interaction, the F-test of H0b: μa1 = μa2 and the t-test of H0a: βa = 0 are equivalent, and thus the F-statistic will be the square of the t-statistic.&amp;nbsp; As soon as more levels of A are included or interaction with A are included, this is no longer the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With GLM coding, Type 3 is always testing H0b: μa1 = μa2 = μa3 = ... = μak, not simply testing the main effect coefficients (H0a).&amp;nbsp; This is because, as this paper states (&lt;A href="https://support.sas.com/documentation/onlinedoc/v82/techreport_r101.pdf" title="https://support.sas.com/documentation/onlinedoc/v82/techreport_r101.pdf"&gt;https://support.sas.com/documentation/onlinedoc/v82/techreport_r101.pdf&lt;/A&gt;), with GLM, the main effects vectors are linear functions of the the interactive terms, whereas with reference parameterization, they are not.&amp;nbsp; Thus, testing H0a for Type 3 with reference coding is (somewhat) valid, but testing H0a for Type 3 with GLM coding is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Type 3 with GLM coding always must test H0b to be valid, the Type 3 F-tests of dichotomous effects will never be equivalent to the parameter t-tests when interactions are involved, unlike the Type 3 reference parameterization test of H0a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phew!&amp;nbsp; I think I understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 20:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134396#M7018</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2014-07-24T20:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134397#M7019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have to study your detailed note later to see if I agree with everything. But I think you have captured many important details. I must point out that I am not an expert on the parameterizations other than the GLM. This is the main one I use because of its value in hypothesis testing of expected values (main effects and interactions) and in calculating estimable functions. There are many ways of parameterizing factor level effects, and they all have value for different applications. The individual parameters may all have direct interpretation on an individual basis, but tests of groups of them (say, for a collection of terms making up a main effect) may be hard to interpret. If you are going to be adding random effects into a model, you will have to get used to the GLM parameterization, the only choice available. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 21:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134397#M7019</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-07-24T21:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134398#M7020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a short follow up. Be warned that hypothesis testing for the GLM (or other) parameterization is a huge topic, and there are many issues. With the GLM parameterization, the type 3 tests for main effects are tests of &lt;EM&gt;marginal&lt;/EM&gt; means (means averaged over the levels of the other factors). SAS has detailed discussions in the GLM PROC chapter and in a general chapter on type 1- 4 hypothesis tests. For the other parameterizations, the documentation is less extensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chapter for SURVEYLOGISTIC has some useful text: For full-rank parameterization (such as reference, effect, and about everything except GLM),&amp;nbsp; "The Type 3 test of an effect of interest is the joint test that the parameters associated with that effect are zero.". This is what we discussed already. So all is clear. But then it expands on this, "For a model that uses reference parameterization (as specified by the PARAM=REF option in the CLASS statement), the Type 3 test is [also] a test of the equality of &lt;STRONG&gt;cell means&lt;/STRONG&gt; &lt;STRONG&gt;at the reference level of the other model effects&lt;/STRONG&gt;". I had to think about this for a while, but I see this now for simple situations. Note that&amp;nbsp; these are the cell means, not the marginal means, This is important. A test of A is for the equality of the A cell means at the chosen reference level of B. I would call these slices of interaction means (or simple effects); these are GLM-based terms. But the parameters don't allow you to test the equality of cell means of A at the non-reference level (I don't think these can be defined). The presence of an interaction makes this even harder to interpret. I think all is fine if you stick with the simpler interpretation of a "joint test that the parameters associated with the effect are zero". Use GLM parameterization if you want straight-forward interpretation of main effects and interactions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 02:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134398#M7020</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-07-25T02:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Type 3 stats GLIMMIX vs. GENMOD vs. LOGISTIC</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134399#M7021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot... I won't be available for further comments for a few days.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 02:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Type-3-stats-GLIMMIX-vs-GENMOD-vs-LOGISTIC/m-p/134399#M7021</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2014-07-25T02:31:30Z</dc:date>
    </item>
  </channel>
</rss>

