I have fitted a model using proc mixed once with Random statement and once with with repeated statement, then fitted the same model using proc genmode. I expected to see similar results. why variable outcome is significant when I use Genmod and not significant When I use Proc MIxed with Random statement and borderline significant when I use Proc mixed with repeated statement. Y is measured three time on each subject , outcome is a binary variable (Yes, NO), and Time (1,2,3) refers the ordering of the measurement time. proc mixed data = mine; class outcome id time; model y = outcome time /ddfm=kr2 solution; random int /type=un subject =Id; run; proc mixed data = mine; class outcome id time; model y = outcome time /ddfm=kr2 solution; repeated /type =un subject =id; run; PROC GENMOD DATA =mine; CLASS id time outcome; MODEL y= outcome time; REPEATED SUBJECT=id / TYPE=UN CORRW; RUN;
... View more