I ran genmod on a binary DV, and I was puzzled that the parameter for my "time2" variable was nonsignificant, whereas the Wald test for this same variable was significant. I show my syntax and output below. Could anyone tell me why these results differed (the other parameters matched the p values of the Wald test)? For some background, I am working with a study that consisted of 2 phases in time. The first went from 0 to 16 weeks, and the second phase went from 16 to 64 weeks. That is why I form a vector representing these time points below, because I needed to have 2 separate slopes to model the differences between these 2 differing phases.
*set up vectors of time points;
if time le 16 then time1 = time;
else time1 = 16;
if time gt 16 then time2 = time;
else time2 = 0;
proc genmod data=ham descending;
class id hasAnxB time;
model MDD_C = time1 time2 hasAnxB time1*hasAnxB time2*hasAnxB /link=logit dist=binomial type3 wald;
repeated subject=id / within=time corrw type=un;
The GENMOD Procedure
Analysis Of GEE Parameter Estimates
Empirical Standard Error Estimates
The test in the "Analysis of GEE Parameter Estimates" table is a test that the individual parameter is zero, while the test in the "Type 3 GEE analysis" table is a test of a type3 hypothesis. A type3 hypothesis for a model effect might involve other parameters in the model, such as when it is involved in interactions.
To see the form of the type3 hypothesis for a given effect, run the same model in PROC GLM (omit the REPEATED statement) and specify the E and E3 options in the MODEL statement of PROC GLM (ignore all GLM results other than the Estimable Functions tables). The E option shows the general form of the estimable functions, and the E3 option shows the form of the type3 hypothesis that is tested by the TYPE3 option in PROC GENMOD and displayed in the Type 3 analysis table.