Hi Eman, I followed it all, and thought I could write code, but I ran into an issue with emotion_type as a repeated measure. I know it is repeated within a subject, but is there any ordering to the presentation? If so, is it identical for all subjects? Judging from the R model, I would say that there is no ordering, or else there would be an additional R side factor covering the temporal effect. So, in the R model emotion_type is a G side effect, with a two level unstructured covariance structure. I might be tempted to see if the simpler compound symmetry effect improved the fit based on corrected AIC. So here is my proposed code:
proc glimmix data=d method=laplace;
class emotion_type target_video_num emotion_type participant_id;
model correct_recognized = emotion_type cent_trans_ART emotion_type*cent_trans_ART/dist=binary;
random emotion_type/subject=participant_id type=chol;
/* and here is the hard part, fitting a continuous variable as a random_effect*/
random cent_trans_ART/subject=target_video_num;
/*insert any lsmeans/oddsratio estimate/lsmeans/lsmestimate statements here, or use a STORE statement*/
run;
This fits an unequal slopes/unequal intercept model for cent_trans_ART. A reduced model may be appropriate if the emotion_type by cent_trans_ART interaction is not significant. Oh yeah, no guarantees that this code will converge, etc.
SteveDenham
... View more